Skip to content

Commit 3a9ea7f

Browse files
committed
Add 'fields' to PictureCreateView
1 parent fe06a23 commit 3a9ea7f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fileupload/views.py

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
class PictureCreateView(CreateView):
1212
model = Picture
13+
fields = "__all__"
1314

1415
def form_valid(self, form):
1516
self.object = form.save()

0 commit comments

Comments
 (0)