Skip to content
Snippets Groups Projects
Verified Commit 7d41c4e6 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Use direct model import in migration to use extensbile fields

parent 462c5d92
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,8 @@ from aleksis.core.util.core_helpers import get_site_preferences
def guess_school_id(apps, schema_editor):
db_alias = schema_editor.connection.alias
ValidityRange = apps.get_model("chronos", "ValidityRange")
from aleksis.apps.chronos.models import ValidityRange
try:
vr = ValidityRange.objects.using(db_alias).first()
except ValidityRange.DoesNotExist:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment