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

Merge branch 'fix/assembly_links' into 'develop'

Fix Assembly links view

See merge request hub/hub!1069
parents d0c2e336 ecc7c009
Branches
Tags prod-2024-12-05_10-09
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