Vysloužilé orgy řaď podle konce orgování
This commit is contained in:
		
							parent
							
								
									784a613784
								
							
						
					
					
						commit
						1da5ecb097
					
				
					 2 changed files with 6 additions and 8 deletions
				
			
		|  | @ -9,14 +9,10 @@ | |||
| 
 | ||||
| {% block content %} | ||||
| <div> | ||||
|   {% if not aktivni %} | ||||
|     <a href="/co-je-MaM/organizatori/">Aktivní organizátoři</a> | ||||
|   {% endif %} | ||||
|   {% for org in object_list %} | ||||
|     <!-- | ||||
|     {% if org.user.is_active %} | ||||
|       <b>Aktivní</b> | ||||
|     {% else %} | ||||
|       Není aktivní | ||||
|     {% endif %} | ||||
|     --> | ||||
|     <h2> | ||||
|     {{org.user.first_name}} | ||||
|     {% if org.prezdivka %} | ||||
|  | @ -53,6 +49,8 @@ | |||
| 
 | ||||
|   {% if aktivni%} | ||||
|     <a href="organizovali/">Vysloužilí organizátoři</a> | ||||
|   {% else %} | ||||
|     <a href="/co-je-MaM/organizatori/">Aktivní organizátoři</a> | ||||
|   {% endif %} | ||||
| 
 | ||||
| </div> | ||||
|  |  | |||
|  | @ -65,7 +65,7 @@ class CojemamOrganizatoriView(generic.ListView): | |||
| class CojemamOrganizatoriStariView(generic.ListView): | ||||
|     model = Organizator | ||||
|     template_name='seminar/cojemam/organizatori.html' | ||||
|     queryset = Organizator.objects.filter(organizuje_do_roku__isnull=False, organizuje_do_roku__lt=date.today().year).order_by('user__first_name') | ||||
|     queryset = Organizator.objects.filter(organizuje_do_roku__isnull=False, organizuje_do_roku__lt=date.today().year).order_by('-organizuje_do_roku') | ||||
| 
 | ||||
| ### Archiv | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Matěj Kocián
						Matěj Kocián