django-polymorphic icon indicating copy to clipboard operation
django-polymorphic copied to clipboard

Improved Django model inheritance with automatic downcasting

Results 150 django-polymorphic issues
Sort by recently updated
recently updated
newest added

It's possible to create objects with same primary keys. But it will be raise into: `polymorphic.models.PolymorphicTypeInvalid: ContentType XY for #XY does not point to a subclass!` So there is not...

I encountered the following bug when using - Django 2.0.4 - django-polymorphic 2.0.2 - Python 3.6.4 - Postgresql and sqllite # Bug description Create two instances of Classes that have...

Subject says it all. Removing the `select_related` makes it work correctly, just much slower. :(

I would like to contribute code

``` class Organisation(PolymorphicModel): name = models.CharField(max_length=255) class NationalNode(Organisation): email = models.CharField(max_length=255) class PatientNode(Organisation): email = models.CharField(max_length=255) ``` Is there any issues that can happen with this type of setup? Note:...

[The docs](https://django-polymorphic.readthedocs.io/en/stable/managers.html#using-a-custom-queryset-class) state that creating a queryset from a manager should be done using ```python my_objects = PolymorphicManager.from_queryset(MyQuerySet)() ``` However, the standard django pattern is to use: ```python my_objects =...

## Problem (help wanted) - not sure how to change the label to help wanted I am trying to understand how to query an abstract base class/model via a unique...

in one of my child model i have a change password custom urls ```python def get_urls(self): return [ path( '/password/', self.admin_site.admin_view(self.mymodel_change_password), name='mymodel_password_change', ), ] + super().get_urls() ``` and when i...

I have a `Conversation` model that is made up of many `Interaction`s. `Interaction` is an abstract Polymorphic model with two concrete child models `Message` and `VoiceCall`. A conversation is all...

I have custom user db model `Profile` class (subclass `PolymorphicModel, AbstractUser`) with custom manager class (subclass `PolymorphicManager`, `UserManager`) and model `UserProfile`, `CompanyProfile` class (subclass `Profile`). I have installed `django-helpdesk` app....