mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 14:32:19 +01:00 
			
		
		
		
	Display team solutions
This commit is contained in:
		@@ -210,7 +210,11 @@ class Command(BaseCommand):
 | 
			
		||||
                    obj_dict["user"] = TFJMUser.objects.get(args[1]),
 | 
			
		||||
                    obj_dict["type"] = args[4].lower()
 | 
			
		||||
                else:
 | 
			
		||||
                    obj_dict["team"] = Team.objects.get(pk=args[2])
 | 
			
		||||
                    try:
 | 
			
		||||
                        obj_dict["team"] = Team.objects.get(pk=args[2])
 | 
			
		||||
                    except Team.DoesNotExist:
 | 
			
		||||
                        print("Team with pk {} does not exist, ignoring".format(args[2]))
 | 
			
		||||
                        continue
 | 
			
		||||
                with transaction.atomic():
 | 
			
		||||
                    if args[4] != "MOTIVATION_LETTER":
 | 
			
		||||
                        Authorization.objects.create(**obj_dict)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user