Fixed a type issue found by the new django 1.8 query type checks.

- Legacy-Id: 12452
This commit is contained in:
Henrik Levkowetz 2016-12-05 14:13:00 +00:00
parent 1d5a7a692a
commit bc683ccc67

View file

@ -301,7 +301,7 @@ class InterimSessionModelForm(forms.ModelForm):
name=filename,
rev='00',
external_url='{}-00.txt'.format(filename))
doc.set_state(State.objects.get(type=doc.type, slug='active'))
doc.set_state(State.objects.get(type__slug=doc.type.slug, slug='active'))
DocAlias.objects.create(name=doc.name, document=doc)
self.instance.sessionpresentation_set.create(document=doc, rev=doc.rev)
NewRevisionDocEvent.objects.create(