]> git.parisson.com Git - mezzo.git/commitdiff
Fix organization order
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 6 Dec 2016 09:36:46 +0000 (10:36 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 6 Dec 2016 09:36:46 +0000 (10:36 +0100)
app/organization/core/context_processors.py

index 684b776bf861e5c9a0eaad41b81d4b834fac0b6b..be0e0ebc8c6f1d4cf4f497eda2642097f136e8b0 100644 (file)
@@ -17,8 +17,8 @@ def settings(request):
 
     # HOST ORGANIZATION
     host_org = Organization.objects.get(is_host=True)
-    linked_org_content = host_org.organizations_content.filter(organizations_content__id=host_org.id).order_by('organizations_content__order')
-    linked_org_footer = host_org.organizations_footer.filter(organizations_footer__id=host_org.id).order_by('organizations_footer__order')
+    linked_org_content = host_org.organizations_content.filter(organizations_content__id=host_org.id).order_by('order')
+    linked_org_footer = host_org.organizations_footer.filter(organizations_footer__id=host_org.id).order_by('order')
     research_slug = "recherche"
 
     return {'current_season': current_season,