Skip to content
Snippets Groups Projects
Commit ecc7c009 authored by Roang's avatar Roang
Browse files

Update assemblies.py

parent d0c2e336
Branches
Tags
No related merge requests found
......@@ -367,7 +367,7 @@ class AssemblyLinksUpdateView(AssemblyMixin, View):
return (
Assembly.objects.associated_with_user(conference=self.conference, user=self.request.user, show_public=True)
.filter(hierarchy=Assembly.Hierarchy.REGULAR)
.exclude(state_assembly__in=[Assembly.State.PLANNED, Assembly.State.HIDDEN, Assembly.State.REJECTED])
.exclude(state__in=[Assembly.State.PLANNED, Assembly.State.HIDDEN, Assembly.State.REJECTED])
# Remove self from list (cannot link to self)
.exclude(pk=self.assembly.pk)
# Remove already linked assemblies
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment