cleanup in villages/
This commit is contained in:
parent
8026dba14f
commit
5bffb9c53a
|
@ -1,5 +1,3 @@
|
||||||
|
|
||||||
|
|
||||||
from django.apps import AppConfig
|
from django.apps import AppConfig
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -9,9 +9,9 @@ class EnsureWritableCampMixin(SingleObjectMixin):
|
||||||
# do not permit view if camp is in readonly mode
|
# do not permit view if camp is in readonly mode
|
||||||
if self.camp.read_only:
|
if self.camp.read_only:
|
||||||
messages.error(request, "No thanks")
|
messages.error(request, "No thanks")
|
||||||
return redirect(reverse('village_list', kwargs={'camp_slug': self.camp.slug}))
|
return redirect(
|
||||||
|
reverse('village_list', kwargs={'camp_slug': self.camp.slug})
|
||||||
|
)
|
||||||
|
|
||||||
# alright, continue with the request
|
# alright, continue with the request
|
||||||
return super().dispatch(request, *args, **kwargs)
|
return super().dispatch(request, *args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue