Commits

Osiloke Emoekpere  committed 886618d

Removed admin_can wrapper from frontend views

  • Participants
  • Parent commits c06714f

Comments (0)

Files changed (1)

File frontend/views.py

 from utilities import check_permission, LazyEncoder
 from forms import get_model_form
 
-from frontend.utilities import ajax_view, view_can
-
-from example.someapp.models import MyModel
+from frontend.utilities import ajax_view, view_can 
 
 json_serializer = LazyEncoder()
 
 @ajax_view()
-@view_can(MyModel, action="add", ajax=True)
 def add(request):
     """
     Process the add form.
 add = require_POST(add)
 
 @ajax_view()
-@view_can(MyModel, action="change", ajax=True)
 def edit(request):
     """
     Process the inline editing form.