Skip to content

Commit

Permalink
Make sure reset_polymorphic_ctype() supports proxy models
Browse files Browse the repository at this point in the history
  • Loading branch information
vdboor committed Oct 8, 2017
1 parent c2768f8 commit 04b5fb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polymorphic/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def reset_polymorphic_ctype(*models, **filters):
models = reversed(models)

for new_model in models:
new_ct = ContentType.objects.db_manager(using).get_for_model(new_model)
new_ct = ContentType.objects.db_manager(using).get_for_model(new_model, for_concrete_model=False)

qs = new_model.objects.db_manager(using)
if ignore_existing:
Expand Down

0 comments on commit 04b5fb4

Please sign in to comment.