Skip to content

PolymorphicTypeInvalid if primary key is the same... #420

@jedie

Description

@jedie

It's possible to create objects with same primary keys. But it will be raise into:

polymorphic.models.PolymorphicTypeInvalid: ContentType XY for <class 'FooBar'> #XY does not point to a subclass!

So there is not unique_together contraints between the primary key and polymorphic_ctype, isn't it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions