#42 Excluding Level from Forms
This commit is contained in:
parent
1c6366fb43
commit
a7a3ddfe63
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user