Fixes proxy models in the admin

The PolymorphicParentModelAdmin was getting the concrete model ids for
the add form.
fix_request_path_info
floppya 2013-03-22 16:47:05 -06:00 committed by Diederik van der Boor
parent 1a6f3a45e5
commit 20ac209dbb
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ class PolymorphicParentModelAdmin(admin.ModelAdmin):
"""
choices = []
for model, _ in self.get_child_models():
ct = ContentType.objects.get_for_model(model)
ct = ContentType.objects.get_for_model(model, for_concrete_model=False)
choices.append((ct.id, model._meta.verbose_name))
return choices