Organizator: Lepší způsob řazení
This commit is contained in:
		
							parent
							
								
									891480f751
								
							
						
					
					
						commit
						7e517d2c24
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -758,6 +758,10 @@ class Organizator(models.Model): | ||||||
|     class Meta: |     class Meta: | ||||||
|         verbose_name = 'Organizátor' |         verbose_name = 'Organizátor' | ||||||
|         verbose_name_plural = 'Organizátoři' |         verbose_name_plural = 'Organizátoři' | ||||||
|  |         # Řadí aktivní orgy na začátek, pod tím v pořadí od nejstarších neaktivní orgy. | ||||||
|  |         # TODO: Chtěl bych spíš mít nejstarší orgy dole. | ||||||
|  |         # TODO: Zohledňovat přezdívky? | ||||||
|  |         ordering = ['organizuje_do_roku', 'user__first_name', 'user__last_name'] | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @reversion.register(ignore_duplicates=True) | @reversion.register(ignore_duplicates=True) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 LEdoian
						LEdoian