Commit 89cd0ac8 authored by chirac's avatar chirac Committed by Gabriel Detraz
Browse files

Remove useless imports

parent 331a75d7
......@@ -48,10 +48,6 @@ from .models import (
from re2o.views import AutocompleteViewMixin
from re2o.acl import (
can_view_all,
)
class VlanAutocomplete(AutocompleteViewMixin):
obj_type = Vlan
......
......@@ -46,12 +46,7 @@ from .models import (
from re2o.views import AutocompleteViewMixin
from re2o.acl import (
can_view_all,
)
#@can_view_all(School)
class RoomAutocomplete(AutocompleteViewMixin):
obj_type = Room
......@@ -77,12 +72,10 @@ class RoomAutocomplete(AutocompleteViewMixin):
)
#@can_view_all(Dormitory)
class DormitoryAutocomplete(AutocompleteViewMixin):
obj_type = Dormitory
#@can_view_all(Building)
class BuildingAutocomplete(AutocompleteViewMixin):
obj_type = Building
......
......@@ -33,32 +33,20 @@ from __future__ import unicode_literals
from .models import (
User,
Ban,
Whitelist,
School,
ListRight,
Request,
ServiceUser,
Adherent,
Club,
ListShell,
EMailAddress,
)
from re2o.views import AutocompleteViewMixin
from re2o.acl import (
can_view_all,
)
from django.db.models import Q, Value, CharField
from django.db.models.functions import Concat
#@can_view_all(School)
class SchoolAutocomplete(AutocompleteViewMixin):
obj_type = School
#@can_view_all(User)
class UserAutocomplete(AutocompleteViewMixin):
obj_type = User
......@@ -77,7 +65,6 @@ class UserAutocomplete(AutocompleteViewMixin):
| Q(full_name_reverse__icontains=self.q)
)
#can_view_all(Adherent)
class AdherentAutocomplete(AutocompleteViewMixin):
obj_type = Adherent
......@@ -96,7 +83,6 @@ class AdherentAutocomplete(AutocompleteViewMixin):
| Q(full_name_reverse__icontains=self.q)
)
#@can_view_all(Club)
class ClubAutocomplete(AutocompleteViewMixin):
obj_type = Club
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment