chore(api): fix linting errors
This commit is contained in:
parent
be7e11216e
commit
86b7a34263
|
@ -27,5 +27,4 @@ def create_schema(_apps, _schema_editor):
|
|||
|
||||
class Migration(migrations.Migration):
|
||||
initial = True
|
||||
dependencies = []
|
||||
operations = [migrations.RunPython(create_schema)]
|
||||
|
|
|
@ -29,7 +29,7 @@ class Migration(migrations.Migration):
|
|||
migrations.RunPython(
|
||||
code=legacy_migration_factory(
|
||||
target="2.5.11",
|
||||
sql=update_disk_usage,
|
||||
before=update_disk_usage,
|
||||
)
|
||||
)
|
||||
]
|
||||
|
|
|
@ -14,6 +14,7 @@ class ManagedModelTestRunner(DiscoverRunner):
|
|||
unmanaged_models: List[Type[Model]] = []
|
||||
|
||||
def setup_test_environment(self, *args, **kwargs):
|
||||
# pylint: disable=import-outside-toplevel
|
||||
from django.apps import apps
|
||||
|
||||
for model in apps.get_models():
|
||||
|
|
Loading…
Reference in New Issue