#42 Excluding Level from Forms

This commit is contained in:
reverend 2021-10-01 21:14:53 +02:00
parent 1c6366fb43
commit a7a3ddfe63
1 changed files with 2 additions and 2 deletions

View File

@ -63,13 +63,13 @@ class ExplorerChangeForm(forms.ModelForm):
class Meta:
model = Explorer
fields = '__all__'
exclude = ['user', 'favorite_places']
exclude = ['user', 'favorite_places', 'level']
class PlaceForm(forms.ModelForm):
class Meta:
model = Place
fields = '__all__'
exclude = ['submitted_by']
exclude = ['submitted_by', 'level']
widgets = {
'hero': widgets.SelectContent()
}