Apparently the session_draft_list fix was missing a .distinct(),

rewrite slightly to add that
 - Legacy-Id: 6062
This commit is contained in:
Ole Laursen 2013-08-15 09:51:13 +00:00
parent 31dc2ea1a4
commit 023d02feb8

View file

@ -331,11 +331,13 @@ def read_agenda_file(num, doc):
return None
def session_draft_list(num, session):
agenda = get_object_or_404(Document,
type="agenda",
session__meeting__number=num,
session__group__acronym=session,
states=State.objects.get(type="agenda", slug="active"))
try:
agenda = Document.objects.filter(type="agenda",
session__meeting__number=num,
session__group__acronym=session,
states=State.objects.get(type="agenda", slug="active")).distinct().get()
except Document.DoesNotExist:
raise Http404
drafts = set()
content = read_agenda_file(num, agenda)