Fixes proxy models in the admin
The PolymorphicParentModelAdmin was getting the concrete model ids for the add form.fix_request_path_info
parent
1a6f3a45e5
commit
20ac209dbb
|
|
@ -140,7 +140,7 @@ class PolymorphicParentModelAdmin(admin.ModelAdmin):
|
||||||
"""
|
"""
|
||||||
choices = []
|
choices = []
|
||||||
for model, _ in self.get_child_models():
|
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))
|
choices.append((ct.id, model._meta.verbose_name))
|
||||||
return choices
|
return choices
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue