From d4acb0d434930ea5471874a85bfa4a0ea14dbbf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Tue, 5 Jul 2016 23:57:08 +0200 Subject: [PATCH] Use private instead of open. --- villages/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/villages/views.py b/villages/views.py index 5d4e589f..a6c3069a 100644 --- a/villages/views.py +++ b/villages/views.py @@ -21,7 +21,7 @@ class VillageDetailView(DetailView): class VillageCreateView(CreateView): model = Village template_name = 'village_form.html' - fields = ['name', 'description', 'open'] + fields = ['name', 'description', 'private'] success_url = reverse_lazy('villages:list') def form_valid(self, form): @@ -34,7 +34,7 @@ class VillageCreateView(CreateView): class VillageUpdateView(UpdateView): model = Village template_name = 'village_form.html' - fields = ['name', 'description', 'open'] + fields = ['name', 'description', 'private'] def get_success_url(self): return self.get_object().get_absolute_url()