Browse Source

fix

middleware_test
Pavel "LEdoian" Turinsky 3 years ago
parent
commit
365d1a9a32
  1. 2
      seminar/migrations/0095_fix_polymorphism.py

2
seminar/migrations/0095_fix_polymorphism.py

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

Loading…
Cancel
Save