Skip to content

Commit 32a4a95

Browse files
committed
Summary: Fix bug with uploading new materials with new save API
- Legacy-Id: 10188
1 parent 20f7931 commit 32a4a95

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

ietf/doc/views_material.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ def edit_material(request, name=None, acronym=None, action=None, doc_type=None):
107107
events = []
108108

109109
if action == "new":
110-
doc = Document()
111-
doc.type = document_type
112-
doc.group = group
113-
doc.rev = "00"
114-
doc.name = form.cleaned_data["name"]
110+
doc = Document.objects.create(
111+
type=document_type,
112+
group=group,
113+
rev="00",
114+
name=form.cleaned_data["name"])
115115

116116
prev_rev = None
117117
else:

0 commit comments

Comments
 (0)