typo
This commit is contained in:
parent
ccfdfa1ba5
commit
f952370280
|
@ -61,7 +61,7 @@ class VillageUpdateView(CampViewMixin, EnsureUserOwnsVillageMixin, LoginRequired
|
||||||
template_name = 'village_form.html'
|
template_name = 'village_form.html'
|
||||||
fields = ['name', 'description', 'private']
|
fields = ['name', 'description', 'private']
|
||||||
|
|
||||||
def form_valid(self, form):
|
def form_valid(self, form):
|
||||||
village = form.save(commit=False)
|
village = form.save(commit=False)
|
||||||
if not village.name:
|
if not village.name:
|
||||||
village.name = "noname"
|
village.name = "noname"
|
||||||
|
|
Loading…
Reference in a new issue