8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-23 11:53:12 +00:00

Remove useless imports

This commit is contained in:
chirac 2020-12-31 19:42:08 +01:00 committed by Gabriel Detraz
parent 331a75d77a
commit 89cd0ac856
3 changed files with 0 additions and 25 deletions

View file

@ -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

View file

@ -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

View file

@ -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