This commit is contained in:
Pavel "LEdoian" Turinsky 2021-07-01 02:58:49 +02:00
parent fd9026de88
commit 365d1a9a32

View file

@ -12,7 +12,7 @@ def fix_all(apps, schema_editor):
]:
Model = apps.get_model('seminar', modelname)
ct = ContentType.objects.get_for_model(Model)
Model.objects.update(polymorphic_ctype_id=ct)
Model.objects.update(polymorphic_ctype=ct)
class Migration(migrations.Migration):