Fixed a case of indeterminate ordering.

- Legacy-Id: 16343
This commit is contained in:
Henrik Levkowetz 2019-06-30 20:58:26 +00:00
parent 8b52899459
commit ff6997df2b

View file

@ -1456,7 +1456,7 @@ def release_draft(request, name):
events = []
if doc.stream.slug == 'ise' or doc.group.type_id != 'individ':
existing_tags = set(doc.tags.all())
existing_tags = list(doc.tags.all())
if existing_tags:
doc.tags.clear()
e = DocEvent(type="changed_document", doc=doc, rev=doc.rev, by=by)