Skip to content

Commit b9301ef

Browse files
committed
Fix weird migration issue
- Legacy-Id: 10327
1 parent 86c3a43 commit b9301ef

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

ietf/doc/migrations/0011_auto_20151027_1127.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ class Migration(migrations.Migration):
8383

8484
dependencies = [
8585
('doc', '0010_auto_20150930_0251'),
86+
('group', '0007_auto_20150930_0758'),
8687
]
8788

8889
operations = [

ietf/group/migrations/0007_auto_20150930_0758.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,21 +58,21 @@ def fix_empty_rrg_charter(apps, schema_editor):
5858
charter.time = datetime.datetime.now()
5959
charter.save()
6060

61-
NewRevisionDocEvent.objects.get_or_create(
61+
NewRevisionDocEvent.objects.create(
6262
rev=charter.rev,
6363
doc=charter,
6464
type="new_revision",
6565
by=system,
6666
desc="New version available: <b>%s-%s.txt</b>" % (charter.name, charter.rev),
67-
defaults=dict(time=charter.time)
67+
time=charter.time,
6868
)
6969

70-
DocEvent.objects.get_or_create(
70+
DocEvent.objects.create(
7171
doc=charter,
7272
type="added_comment",
7373
by=system,
7474
desc="Added existing charter",
75-
defaults=dict(time=charter.time)
75+
time=charter.time,
7676
)
7777

7878
approved = State.objects.get(type="charter", slug="approved")

0 commit comments

Comments
 (0)