Skip to content

Commit 2c673b5

Browse files
committed
[refs #3] Using 'fields' instead of 'exclude'
1 parent c6e85e9 commit 2c673b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example-project/mycmsproject/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
class ContentForm(forms.ModelForm):
99
class Meta:
1010
model = Content
11-
exclude = ()
11+
fields = '__all__'

0 commit comments

Comments
 (0)