Skip to content

Commit

Permalink
Removed unused imports
Browse files Browse the repository at this point in the history
Removed unused imports
  • Loading branch information
Vijay committed Dec 30, 2016
1 parent cbfcba8 commit 6ff9a2c
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions wye/workshops/mixins.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
from django.contrib import messages
# from django.contrib import messages
# from django.core.exceptions import PermissionDenied
from django.core.urlresolvers import reverse
# from django.core.urlresolvers import reverse
# from django.http import Http404
from django.http import HttpResponseForbidden
from django.http import HttpResponseRedirect, JsonResponse
from django.shortcuts import render
# from django.http import HttpResponseRedirect, JsonResponse
# from django.shortcuts import render

from wye.base.constants import WorkshopStatus, FeedbackType
# from wye.base.constants import WorkshopStatus, FeedbackType
from wye.base.emailer import send_mail
from wye.organisations.models import Organisation
# from wye.organisations.models import Organisation
from wye.profiles.models import Profile
from wye.regions.models import RegionalLead

from .models import Workshop, WorkshopFeedBack
from .models import Workshop


class WorkshopAccessMixin(object):
Expand All @@ -29,7 +29,8 @@ def dispatch(self, request, *args, **kwargs):

if not (is_admin or is_lead or is_organiser):
return HttpResponseForbidden("Not sufficent permission")
return super(WorkshopAccessMixin, self).dispatch(request, *args, **kwargs)
return super(WorkshopAccessMixin, self).dispatch(
request, *args, **kwargs)


# class WorkshopFeedBackMixin(object):
Expand Down

0 comments on commit 6ff9a2c

Please sign in to comment.