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