Skip to content

Commit 54c4c5e

Browse files
committed
Make the test data new revision event a proper NewRevisionDocEvent so
it's consistent with what the code expects - Legacy-Id: 11205
1 parent 21b2330 commit 54c4c5e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

ietf/utils/test_data.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import debug # pyflakes:ignore
88

9-
from ietf.doc.models import Document, DocAlias, State, DocumentAuthor, BallotType, DocEvent, BallotDocEvent, RelatedDocument
9+
from ietf.doc.models import Document, DocAlias, State, DocumentAuthor, BallotType, DocEvent, BallotDocEvent, RelatedDocument, NewRevisionDocEvent
1010
from ietf.group.models import Group, GroupHistory, Role, RoleHistory
1111
from ietf.iesg.models import TelechatDate
1212
from ietf.ipr.models import HolderIprDisclosure, IprDocRel, IprDisclosureStateName, IprLicenseTypeName
@@ -247,11 +247,12 @@ def make_test_data():
247247
desc="Started IESG process",
248248
)
249249

250-
DocEvent.objects.create(
250+
NewRevisionDocEvent.objects.create(
251251
type="new_revision",
252252
by=ad,
253253
doc=draft,
254254
desc="New revision available",
255+
rev="01",
255256
)
256257

257258
BallotDocEvent.objects.create(

0 commit comments

Comments
 (0)