Skip to content

Commit

Permalink
Fix #452: user menu visibility
Browse files Browse the repository at this point in the history
Some views missing the "superuser aware" mixin
  • Loading branch information
Ian Ross committed Jul 15, 2016
1 parent ad1ddc7 commit 8e0e46e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions cadasta/party/views/default.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from django.views import generic
from core.views import generic
import django.views.generic as base_generic
from django.core.urlresolvers import reverse
from jsonattrs.mixins import JsonAttrsMixin
from core.mixins import LoginPermissionRequiredMixin
Expand Down Expand Up @@ -69,7 +70,7 @@ def get_success_url(self):

class PartyResourcesAdd(LoginPermissionRequiredMixin,
mixins.PartyResourceMixin,
generic.edit.FormMixin,
base_generic.edit.FormMixin,
generic.DetailView):
template_name = 'party/resources_add.html'
form_class = AddResourceFromLibraryForm
Expand Down Expand Up @@ -137,7 +138,7 @@ class PartyRelationshipResourceNew(LoginPermissionRequiredMixin,

class PartyRelationshipResourceAdd(LoginPermissionRequiredMixin,
mixins.PartyRelationshipResourceMixin,
generic.edit.FormMixin,
base_generic.edit.FormMixin,
generic.DetailView):
template_name = 'party/relationship_resources_add.html'
form_class = AddResourceFromLibraryForm
Expand Down
5 changes: 3 additions & 2 deletions cadasta/resources/views/default.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from django.views import generic
from core.views import generic
import django.views.generic as base_generic
from core.views.mixins import ArchiveMixin

from core.mixins import LoginPermissionRequiredMixin
Expand All @@ -19,7 +20,7 @@ class ProjectResources(LoginPermissionRequiredMixin,

class ProjectResourcesAdd(LoginPermissionRequiredMixin,
ProjectResourceMixin,
generic.edit.FormMixin,
base_generic.edit.FormMixin,
generic.DetailView):
template_name = 'resources/project_add_existing.html'
form_class = AddResourceFromLibraryForm
Expand Down

0 comments on commit 8e0e46e

Please sign in to comment.