#42 Excluding Level from Forms

This commit is contained in:
reverend 2021-10-01 21:14:53 +02:00
parent 1c6366fb43
commit a7a3ddfe63

View File

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