Skip to content
Discussion options

You must be logged in to vote

This issue is caused by Django's way of dealing with model inheritance (see: https://docs.djangoproject.com/en/dev/topics/db/models/#specifying-the-parent-link-field)
django-polymorphic "mainly" adds improved retrieval of these objects, and form/admin interfaces.

To have model inheritance, Django adds an implicit base_ptr = OneToOneField(Base, related_name='foo', primary_key=True, parent_link=True) field to Foo that acts as primary key to the Base model. When you explicitly define the key, you might be able to change the related_name so they don't clash with your properties.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bckohan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #266 on December 11, 2025 07:27.