mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-03 17:08:47 +01:00 
			
		
		
		
	@@ -492,8 +492,8 @@ class WEIRegister1AView(ProtectQuerysetMixin, ProtectedCreateView):
 | 
			
		||||
        else:
 | 
			
		||||
            # To avoid unique validation issues, we use an account that can't join the WEI.
 | 
			
		||||
            # In development mode, the note account may not exist, we use a random user (may fail)
 | 
			
		||||
            user = User.objects.get(username="note") if User.objects.filter(username="note").exists() \
 | 
			
		||||
                 else User.objects.first()
 | 
			
		||||
            user = User.objects.get(username="note") \
 | 
			
		||||
                if User.objects.filter(username="note").exists() else User.objects.first()
 | 
			
		||||
        return WEIRegistration(
 | 
			
		||||
            wei=wei,
 | 
			
		||||
            user=user,
 | 
			
		||||
@@ -567,8 +567,8 @@ class WEIRegister2AView(ProtectQuerysetMixin, ProtectedCreateView):
 | 
			
		||||
        else:
 | 
			
		||||
            # To avoid unique validation issues, we use an account that can't join the WEI.
 | 
			
		||||
            # In development mode, the note account may not exist, we use a random user (may fail)
 | 
			
		||||
            user = User.objects.get(username="note") if User.objects.filter(username="note").exists() \
 | 
			
		||||
                 else User.objects.first()
 | 
			
		||||
            user = User.objects.get(username="note") \
 | 
			
		||||
                if User.objects.filter(username="note").exists() else User.objects.first()
 | 
			
		||||
        return WEIRegistration(
 | 
			
		||||
            wei=wei,
 | 
			
		||||
            user=user,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user