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

Reorganize management commands

jeremystretch 2 лет назад
Родитель
Сommit
5c0ce96b6f

+ 0 - 0
netbox/extras/management/commands/clearcache.py → netbox/core/management/commands/clearcache.py


+ 1 - 1
netbox/utilities/management/commands/makemigrations.py → netbox/core/management/commands/makemigrations.py

@@ -4,7 +4,7 @@ from django.core.management.base import CommandError
 from django.core.management.commands.makemigrations import Command as _Command
 from django.db import models
 
-from . import custom_deconstruct
+from utilities.migration import custom_deconstruct
 
 models.Field.deconstruct = custom_deconstruct
 

+ 1 - 1
netbox/utilities/management/commands/migrate.py → netbox/core/management/commands/migrate.py

@@ -2,6 +2,6 @@
 from django.core.management.commands.migrate import Command
 from django.db import models
 
-from . import custom_deconstruct
+from utilities.migration import custom_deconstruct
 
 models.Field.deconstruct = custom_deconstruct

+ 0 - 0
netbox/extras/management/commands/nbshell.py → netbox/core/management/commands/nbshell.py


+ 0 - 0
netbox/extras/management/commands/rqworker.py → netbox/core/management/commands/rqworker.py


+ 0 - 0
netbox/utilities/management/__init__.py


+ 0 - 0
netbox/utilities/management/commands/__init__.py → netbox/utilities/migration.py