Repository: WordPress/openverse-api

Issue:
[Bug] A circular import prevents starting the project correctly
## Description
<!-- Concisely describe the bug. -->
There is a problem with models imports, run the project and see:

```
web_1               | Exception in thread django-main-thread:
web_1               | Traceback (most recent call last):
web_1               |   File "/usr/local/lib/python3.9/threading.py", line 973, in _bootstrap_inner
web_1               |     self.run()
web_1               |   File "/usr/local/lib/python3.9/threading.py", line 910, in run
web_1               |     self._target(*self._args, **self._kwargs)
web_1               |   File "/usr/local/lib/python3.9/site-packages/django/utils/autoreload.py", line 64, in wrapper
web_1               |     fn(*args, **kwargs)
web_1               |   File "/usr/local/lib/python3.9/site-packages/django/core/management/commands/runserver.py", line 110, in inner_run
web_1               |     autoreload.raise_last_exception()
web_1               |   File "/usr/local/lib/python3.9/site-packages/django/utils/autoreload.py", line 87, in raise_last_exception
web_1               |     raise _exception[1]
web_1               |   File "/usr/local/lib/python3.9/site-packages/django/core/management/__init__.py", line 375, in execute
web_1               |     autoreload.check_errors(django.setup)()
web_1               |   File "/usr/local/lib/python3.9/site-packages/django/utils/autoreload.py", line 64, in wrapper
web_1               |     fn(*args, **kwargs)
web_1               |   File "/usr/local/lib/python3.9/site-packages/django/__init__.py", line 24, in setup
web_1               |     apps.populate(settings.INSTALLED_APPS)
web_1               |   File "/usr/local/lib/python3.9/site-packages/django/apps/registry.py", line 114, in populate
web_1               |     app_config.import_models()
web_1               |   File "/usr/local/lib/python3.9/site-packages/django/apps/config.py", line 301, in import_models
web_1               |     self.models_module = import_module(models_module_name)
web_1               |   File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
web_1               |     return _bootstrap._gcd_import(name[level:], package, level)
web_1               |   File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
web_1               |   File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
web_1               |   File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
web_1               |   File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
web_1               |   File "<frozen importlib._bootstrap_external>", line 850, in exec_module
web_1               |   File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
web_1               |   File "/openverse-api/catalog/api/models/__init__.py", line 1, in <module>
web_1               |     from catalog.api.models.audio import (
web_1               |   File "/openverse-api/catalog/api/models/audio.py", line 2, in <module>
web_1               |     from catalog.api.models import OpenLedgerModel
web_1               | ImportError: cannot import name 'OpenLedgerModel' from partially initialized module 'catalog.api.models' (most likely due to a circular import) (/openverse-api/catalog/api/models/__init__.py)
```

## Expectation
<!-- Concisely describe what you expected to happen. -->
The project should start without errors and run normally, passing tests.

## Additional context
<!-- Add any other context about the problem here; or delete the section entirely. -->
The wrong order is introduced due to the `isort` rules so we should make an exception for these lines or the file.

## Resolution
<!-- Replace the [ ] with [x] to check the box. -->
- [ ] 🙋 I would be interested in resolving this bug.



Discussion:

Resolving patch:
diff --git a/openverse-api/catalog/api/models/__init__.py b/openverse-api/catalog/api/models/__init__.py
--- a/openverse-api/catalog/api/models/__init__.py
+++ b/openverse-api/catalog/api/models/__init__.py
@@ -1,3 +1,4 @@
+from catalog.api.models.base import OpenLedgerModel  # isort:skip
 from catalog.api.models.audio import (
     AltAudioFile,
     Audio,
@@ -7,7 +8,6 @@
     DeletedAudio,
     MatureAudio,
 )
-from catalog.api.models.base import OpenLedgerModel
 from catalog.api.models.image import (
     DeletedImage,
     Image,


Test patch: