.
This commit is contained in:
@@ -47,6 +47,7 @@ class QuestionNoteForm(ModelForm):
|
||||
get_object_or_404(question, pk=pk)
|
||||
# We get the 'initial' keyword argument or initialize it
|
||||
# as a dict if it didn't exist.
|
||||
#if kwargs.get("instance"):
|
||||
initial = kwargs.setdefault("initial", {})
|
||||
# The widget for a ModelMultipleChoiceField expects
|
||||
# a list of primary key for the selected data.
|
||||
|
||||
Reference in New Issue
Block a user