Skip to content

Commit 04b5fb4

Browse files
committed
Make sure reset_polymorphic_ctype() supports proxy models
1 parent c2768f8 commit 04b5fb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

polymorphic/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def reset_polymorphic_ctype(*models, **filters):
2626
models = reversed(models)
2727

2828
for new_model in models:
29-
new_ct = ContentType.objects.db_manager(using).get_for_model(new_model)
29+
new_ct = ContentType.objects.db_manager(using).get_for_model(new_model, for_concrete_model=False)
3030

3131
qs = new_model.objects.db_manager(using)
3232
if ignore_existing:

0 commit comments

Comments
 (0)