]> git.parisson.com Git - mezzo.git/commitdiff
is_host limite to one
authorEmilie <zawadzki@ircam.fr>
Mon, 6 Feb 2017 16:19:06 +0000 (17:19 +0100)
committerEmilie <zawadzki@ircam.fr>
Mon, 6 Feb 2017 16:19:06 +0000 (17:19 +0100)
app/organization/core/context_processors.py

index 1a22567d67ea11927b63352d4f142dc4687144ce..2baeea5036fffddf4807cb35c3832cd7b32f9ae5 100644 (file)
@@ -37,7 +37,7 @@ def settings(request):
         newsletter_subscribing_url = newsletter_page.first().get_absolute_url()
 
     # HOST ORGANIZATIONS
-    host_org = Organization.objects.get(is_host=True)
+    host_org = Organization.objects.filter(is_host=True).first()
     organization_lists = []
 
     for orga_linked_block in host_org.organization_linked_block.all():