mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 15:33:45 +00:00
Remove useless imports
This commit is contained in:
parent
15bcb0c280
commit
4f4b71c5b4
3 changed files with 0 additions and 25 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue