Fix bug introduced with generic states

- Legacy-Id: 3806
This commit is contained in:
Ole Laursen 2012-01-13 12:21:08 +00:00
parent 87e87cfc98
commit f02b860e4d

View file

@ -243,7 +243,7 @@ def insert_to_databaseREDESIGN(data):
changed = True
if doc.get_state_slug() != "rfc":
doc.set_state(State.objects.filter(type="draft", slug="rfc"))
doc.set_state(State.objects.get(type="draft", slug="rfc"))
changed = True
if doc.stream != stream_mapping[stream]: