Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions hostel/api/apps.py
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
from django.apps import AppConfig


class ApiConfig(AppConfig):
name = 'api'
4 changes: 0 additions & 4 deletions hostel/burst/apps.py
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
from django.apps import AppConfig


class BurstConfig(AppConfig):
name = 'burst'
4 changes: 0 additions & 4 deletions hostel/clients/apps.py
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
from django.apps import AppConfig


class ClientsConfig(AppConfig):
name = 'clients'
4 changes: 0 additions & 4 deletions hostel/common/apps.py
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
from django.apps import AppConfig


class CommonConfig(AppConfig):
name = 'common'
12 changes: 9 additions & 3 deletions hostel/common/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1484,7 +1484,9 @@ def search(self, search_string):


class PortSearch(Search):
queryset = Port.objects.all().order_by('bundle__device__netname')

# queryset = Port.objects.all().order_by('bundle__device__netname')

arguments = [
'name__icontains',
'description__icontains',
Expand All @@ -1494,7 +1496,9 @@ class PortSearch(Search):


class BundleSearch(Search):
queryset = Bundle.objects.all().order_by('device__netname', 'iface_index')

# queryset = Bundle.objects.all().order_by('device__netname', 'iface_index')

arguments = [
'name__icontains',
'description__icontains',
Expand All @@ -1510,7 +1514,9 @@ class BundleSearch(Search):


class BurstSetSearch(Search):
queryset = BurstSet.objects.all().order_by('client__netname')

# queryset = BurstSet.objects.all().order_by('client__netname')

arguments = [
'name__icontains',
'client__netname__icontains',
Expand Down
4 changes: 0 additions & 4 deletions hostel/companies/apps.py
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
from django.apps import AppConfig


class CompaniesConfig(AppConfig):
name = 'companies'
4 changes: 0 additions & 4 deletions hostel/devices/apps.py
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
from django.apps import AppConfig


class DevicesConfig(AppConfig):
name = 'devices'
4 changes: 0 additions & 4 deletions hostel/docs/apps.py
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
from django.apps import AppConfig


class DocsConfig(AppConfig):
name = 'docs'
4 changes: 0 additions & 4 deletions hostel/ins/apps.py
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
from django.apps import AppConfig


class InsConfig(AppConfig):
name = 'ins'
4 changes: 0 additions & 4 deletions hostel/nets/apps.py
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
from django.apps import AppConfig


class NetsConfig(AppConfig):
name = 'nets'
4 changes: 0 additions & 4 deletions hostel/path_finder/apps.py
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
from django.apps import AppConfig


class PathFinderConfig(AppConfig):
name = 'path_finder'
4 changes: 0 additions & 4 deletions hostel/search/apps.py
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
from django.apps import AppConfig


class SearchConfig(AppConfig):
name = 'search'
2 changes: 2 additions & 0 deletions hostel/settings.py.example
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,5 @@ EMAIL_FROM = ''
SECRET_KEY = ''

LOGIN_URL = "http://127.0.0.1:8000/login/"

DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
4 changes: 0 additions & 4 deletions hostel/spy/apps.py
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
from django.apps import AppConfig


class SpyConfig(AppConfig):
name = 'spy'
4 changes: 0 additions & 4 deletions hostel/store/apps.py
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
from django.apps import AppConfig


class StoreConfig(AppConfig):
name = 'store'
4 changes: 0 additions & 4 deletions hostel/templater/apps.py
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
from django.apps import AppConfig


class TemplaterConfig(AppConfig):
name = 'templater'
4 changes: 0 additions & 4 deletions hostel/tracker/apps.py
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
from django.apps import AppConfig


class TrackerConfig(AppConfig):
name = 'tracker'
4 changes: 0 additions & 4 deletions hostel/vlans/apps.py
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
from django.apps import AppConfig


class VlansConfig(AppConfig):
name = 'vlans'
18 changes: 18 additions & 0 deletions requirements_django3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
asgiref==3.6.0
certifi==2022.12.7
charset-normalizer==3.0.1
Django==3.2
idna==3.4
netaddr==0.8.0
networkx==3.0
Pillow==9.4.0
psycopg2-binary==2.9.5
py-radix==0.10.0
pytz==2022.7.1
requests==2.28.2
requests-toolbelt==0.10.1
rt==1.0.11
six==1.16.0
sqlparse==0.4.3
transliterate==1.10.2
urllib3==1.26.14