mirror of
https://github.com/FuzzyGrim/Yamtrack.git
synced 2026-04-18 12:09:33 +00:00
fix apps.get_model() return a __fake__.MyModel object
This commit is contained in:
@@ -8,6 +8,8 @@ from app.models import MediaTypes, Status
|
||||
|
||||
def reopen_completed_tv_with_new_seasons(apps, _):
|
||||
"""Backfill completed TV entries when discovered seasons already exist."""
|
||||
from django.apps import apps # https://stackoverflow.com/questions/62418465/why-does-djangos-apps-get-model-return-a-fake-mymodel-object
|
||||
|
||||
Item = apps.get_model("app", "Item")
|
||||
Season = apps.get_model("app", "Season")
|
||||
TV = apps.get_model("app", "TV")
|
||||
|
||||
Reference in New Issue
Block a user