From f9523702803ef2581ed8573a6496576f204174b7 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Wed, 23 Aug 2017 03:09:41 +0200 Subject: [PATCH] typo --- src/villages/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/villages/views.py b/src/villages/views.py index 5f9ad944..2595503c 100644 --- a/src/villages/views.py +++ b/src/villages/views.py @@ -61,7 +61,7 @@ class VillageUpdateView(CampViewMixin, EnsureUserOwnsVillageMixin, LoginRequired template_name = 'village_form.html' fields = ['name', 'description', 'private'] - def form_valid(self, form): + def form_valid(self, form): village = form.save(commit=False) if not village.name: village.name = "noname"