Make the test data new revision event a proper NewRevisionDocEvent so

it's consistent with what the code expects
 - Legacy-Id: 11205
This commit is contained in:
Ole Laursen 2016-05-19 15:33:02 +00:00
parent 21b2330b6a
commit 54c4c5efc5

View file

@ -6,7 +6,7 @@ from django.contrib.auth.models import User
import debug # pyflakes:ignore
from ietf.doc.models import Document, DocAlias, State, DocumentAuthor, BallotType, DocEvent, BallotDocEvent, RelatedDocument
from ietf.doc.models import Document, DocAlias, State, DocumentAuthor, BallotType, DocEvent, BallotDocEvent, RelatedDocument, NewRevisionDocEvent
from ietf.group.models import Group, GroupHistory, Role, RoleHistory
from ietf.iesg.models import TelechatDate
from ietf.ipr.models import HolderIprDisclosure, IprDocRel, IprDisclosureStateName, IprLicenseTypeName
@ -247,11 +247,12 @@ def make_test_data():
desc="Started IESG process",
)
DocEvent.objects.create(
NewRevisionDocEvent.objects.create(
type="new_revision",
by=ad,
doc=draft,
desc="New revision available",
rev="01",
)
BallotDocEvent.objects.create(