1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Refactor extras.models

This commit is contained in:
jeremystretch
2023-03-24 21:25:22 -04:00
parent 5c0ce96b6f
commit ea1801bad3
8 changed files with 179 additions and 173 deletions

View File

@@ -3,7 +3,7 @@ import pkgutil
from django.conf import settings
from django.db import migrations, models
import extras.models.models
import extras.models.mixins
def create_files(cls, root_name, root_path):
@@ -60,7 +60,7 @@ class Migration(migrations.Migration):
'indexes': [],
'constraints': [],
},
bases=(extras.models.models.PythonModuleMixin, 'core.managedfile', models.Model),
bases=(extras.models.mixins.PythonModuleMixin, 'core.managedfile', models.Model),
),
migrations.CreateModel(
name='ScriptModule',
@@ -71,7 +71,7 @@ class Migration(migrations.Migration):
'indexes': [],
'constraints': [],
},
bases=(extras.models.models.PythonModuleMixin, 'core.managedfile', models.Model),
bases=(extras.models.mixins.PythonModuleMixin, 'core.managedfile', models.Model),
),
# Instantiate ManagedFiles to represent scripts & reports