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:
parent
331a75d77a
commit
89cd0ac856
3 changed files with 0 additions and 25 deletions
|
@ -48,10 +48,6 @@ from .models import (
|
||||||
|
|
||||||
from re2o.views import AutocompleteViewMixin
|
from re2o.views import AutocompleteViewMixin
|
||||||
|
|
||||||
from re2o.acl import (
|
|
||||||
can_view_all,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class VlanAutocomplete(AutocompleteViewMixin):
|
class VlanAutocomplete(AutocompleteViewMixin):
|
||||||
obj_type = Vlan
|
obj_type = Vlan
|
||||||
|
|
|
@ -46,12 +46,7 @@ from .models import (
|
||||||
|
|
||||||
from re2o.views import AutocompleteViewMixin
|
from re2o.views import AutocompleteViewMixin
|
||||||
|
|
||||||
from re2o.acl import (
|
|
||||||
can_view_all,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
#@can_view_all(School)
|
|
||||||
class RoomAutocomplete(AutocompleteViewMixin):
|
class RoomAutocomplete(AutocompleteViewMixin):
|
||||||
obj_type = Room
|
obj_type = Room
|
||||||
|
|
||||||
|
@ -77,12 +72,10 @@ class RoomAutocomplete(AutocompleteViewMixin):
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
#@can_view_all(Dormitory)
|
|
||||||
class DormitoryAutocomplete(AutocompleteViewMixin):
|
class DormitoryAutocomplete(AutocompleteViewMixin):
|
||||||
obj_type = Dormitory
|
obj_type = Dormitory
|
||||||
|
|
||||||
|
|
||||||
#@can_view_all(Building)
|
|
||||||
class BuildingAutocomplete(AutocompleteViewMixin):
|
class BuildingAutocomplete(AutocompleteViewMixin):
|
||||||
obj_type = Building
|
obj_type = Building
|
||||||
|
|
||||||
|
|
|
@ -33,32 +33,20 @@ from __future__ import unicode_literals
|
||||||
|
|
||||||
from .models import (
|
from .models import (
|
||||||
User,
|
User,
|
||||||
Ban,
|
|
||||||
Whitelist,
|
|
||||||
School,
|
School,
|
||||||
ListRight,
|
|
||||||
Request,
|
|
||||||
ServiceUser,
|
|
||||||
Adherent,
|
Adherent,
|
||||||
Club,
|
Club,
|
||||||
ListShell,
|
ListShell,
|
||||||
EMailAddress,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
from re2o.views import AutocompleteViewMixin
|
from re2o.views import AutocompleteViewMixin
|
||||||
|
|
||||||
from re2o.acl import (
|
|
||||||
can_view_all,
|
|
||||||
)
|
|
||||||
|
|
||||||
from django.db.models import Q, Value, CharField
|
from django.db.models import Q, Value, CharField
|
||||||
from django.db.models.functions import Concat
|
from django.db.models.functions import Concat
|
||||||
|
|
||||||
#@can_view_all(School)
|
|
||||||
class SchoolAutocomplete(AutocompleteViewMixin):
|
class SchoolAutocomplete(AutocompleteViewMixin):
|
||||||
obj_type = School
|
obj_type = School
|
||||||
|
|
||||||
#@can_view_all(User)
|
|
||||||
class UserAutocomplete(AutocompleteViewMixin):
|
class UserAutocomplete(AutocompleteViewMixin):
|
||||||
obj_type = User
|
obj_type = User
|
||||||
|
|
||||||
|
@ -77,7 +65,6 @@ class UserAutocomplete(AutocompleteViewMixin):
|
||||||
| Q(full_name_reverse__icontains=self.q)
|
| Q(full_name_reverse__icontains=self.q)
|
||||||
)
|
)
|
||||||
|
|
||||||
#can_view_all(Adherent)
|
|
||||||
class AdherentAutocomplete(AutocompleteViewMixin):
|
class AdherentAutocomplete(AutocompleteViewMixin):
|
||||||
obj_type = Adherent
|
obj_type = Adherent
|
||||||
|
|
||||||
|
@ -96,7 +83,6 @@ class AdherentAutocomplete(AutocompleteViewMixin):
|
||||||
| Q(full_name_reverse__icontains=self.q)
|
| Q(full_name_reverse__icontains=self.q)
|
||||||
)
|
)
|
||||||
|
|
||||||
#@can_view_all(Club)
|
|
||||||
class ClubAutocomplete(AutocompleteViewMixin):
|
class ClubAutocomplete(AutocompleteViewMixin):
|
||||||
obj_type = Club
|
obj_type = Club
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue