Oprava drobností
This commit is contained in:
		
							parent
							
								
									2cf4d87c6b
								
							
						
					
					
						commit
						844c55d5a7
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -21,7 +21,6 @@ class OsobaAdmin(admin.ModelAdmin): | |||
| 
 | ||||
| 	def udelej_orgem(self,request,queryset): | ||||
| 		org_group = Group.objects.get(name='org') | ||||
| 		print(queryset) | ||||
| 		for o in queryset: | ||||
| 			if m.Organizator.objects.filter(osoba=o).exists(): continue | ||||
| 			user = o.user | ||||
|  | @ -30,7 +29,7 @@ class OsobaAdmin(admin.ModelAdmin): | |||
| 			user.save() | ||||
| 			org = m.Organizator.objects.create(osoba=o, organizuje_od=datetime.now()) | ||||
| 			org.save() | ||||
| 	udelej_orgem.short_description = "Udělej vybraných osob organizátory" | ||||
| 	udelej_orgem.short_description = "Udělej z vybraných osob organizátory" | ||||
| 
 | ||||
| class OsobaInline(admin.TabularInline): | ||||
| 	model = m.Osoba | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Pavel "LEdoian" Turinsky
						Pavel "LEdoian" Turinsky