Browse Source

fix

middleware_test
Pavel "LEdoian" Turinsky 4 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)
ct = ContentType.objects.get_for_model(Model)
Model.objects.update(polymorphic_ctype_id=ct)
Model.objects.update(polymorphic_ctype=ct)
class Migration(migrations.Migration):

Loading…
Cancel
Save