Set the type of RFCs that weren't drafts correctly

- Legacy-Id: 3700
This commit is contained in:
Ole Laursen 2011-11-24 14:58:23 +00:00
parent 0b18e45810
commit 610b56dfd0

View file

@ -1031,7 +1031,7 @@ def get_or_create_rfc_document(rfc_number):
if draft:
name = draft.filename
d, _ = Document.objects.get_or_create(name=name)
d, _ = Document.objects.get_or_create(name=name, type=type_draft)
if not name.startswith('rfc'):
# make sure draft also got an alias
alias_doc(name, d)