Skip to content

Commit 0c573f2

Browse files
committed
Fixed a place where doc.save() was called instead of doc.save_with_history().
- Legacy-Id: 13844
1 parent 66abc91 commit 0c573f2

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

ietf/meeting/forms.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,13 @@ def save_agenda(self):
247247
if self.instance.agenda():
248248
doc = self.instance.agenda()
249249
doc.rev = str(int(doc.rev) + 1).zfill(2)
250-
doc.save()
250+
e = NewRevisionDocEvent.objects.create(
251+
type='new_revision',
252+
by=self.user.person,
253+
doc=doc,
254+
rev=doc.rev,
255+
desc='New revision available')
256+
doc.save_with_history([e])
251257
else:
252258
filename = get_next_agenda_name(meeting=self.instance.meeting)
253259
doc = Document.objects.create(

0 commit comments

Comments
 (0)