Skip to content
Snippets Groups Projects
Commit 2379e92d authored by Todd Dembrey's avatar Todd Dembrey
Browse files

fixup! Make a generic view dispatcher for applicant vs admin views

parent 1301c5b8
No related branches found
No related tags found
No related merge requests found
...@@ -5,8 +5,8 @@ from django.views.generic import DetailView, View ...@@ -5,8 +5,8 @@ from django.views.generic import DetailView, View
@method_decorator(login_required, name='dispatch') @method_decorator(login_required, name='dispatch')
class ViewDispatcher(View): class ViewDispatcher(View):
admin_view = None admin_view: View = None
applicant_view = None applicant_view: View = None
def dispatch(self, request, *args, **kwargs): def dispatch(self, request, *args, **kwargs):
if request.user.is_apply_staff: if request.user.is_apply_staff:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment