Просмотр исходного кода

Remove obsolete InterfaceManager

Jeremy Stretch 6 лет назад
Родитель
Сommit
ae1767b5d0
1 измененных файлов с 0 добавлено и 19 удалено
  1. 0 19
      netbox/dcim/managers.py

+ 0 - 19
netbox/dcim/managers.py

@@ -1,19 +0,0 @@
-from django.db.models import Manager, QuerySet
-
-from .constants import NONCONNECTABLE_IFACE_TYPES
-
-
-class InterfaceQuerySet(QuerySet):
-
-    def connectable(self):
-        """
-        Return only physical interfaces which are capable of being connected to other interfaces (i.e. not virtual or
-        wireless).
-        """
-        return self.exclude(type__in=NONCONNECTABLE_IFACE_TYPES)
-
-
-class InterfaceManager(Manager):
-
-    def get_queryset(self):
-        return InterfaceQuerySet(self.model, using=self._db)