django-polymorphic
                                
                                
                                
                                    django-polymorphic copied to clipboard
                            
                            
                            
                        Improved Django model inheritance with automatic downcasting
Links to PolymorphicChildModelAdmin are as default (or with show_in_index=False) not shown on the index admin page. But in the newer Django Version there is also a sidebar which is shown...
Bumps [django](https://github.com/django/django) from 3.2.9 to 3.2.15. Commits 653a7bd [3.2.x] Bumped version for 3.2.15 release. b3e4494 [3.2.x] Fixed CVE-2022-36359 -- Escaped filename in Content-Disposition header. cb7fbac [3.2.x] Fixed collation tests on...
Test results: https://github.com/cclauss/django-polymorphic/actions
Djangos BinaryField returns a memoryview when you retrieve it, this can't be pickled which causes .delete() to fail when it calls `deepcopy` - ```python --------------------------------------------------------------------------- TypeError Traceback (most recent call...
Using the delete_selected admin action can cause an error similar to the following: IntegrityError: (1451, 'Cannot delete or update a parent row: a foreign key constraint fails (`foo2`.`bar`, CONSTRAINT `format_ptr_id_refs_id_270cb9d612063f8e`...
This example ``` class Account(PolymorphicModel): user = models.OneToOneField(User, primary_key=True) ``` fails with `Caught AttributeError while rendering: type object 'Account' has no attribute 'polymorphic_primary_key_name'` 2c47db8fcc284a92d2c9769ba503603fbea92660 introduced a new way of determining...
select_related, fails when you have different foreign keys on different parent classes. I made a workaround, where the query is split up by type id, then for each of those...
hey all wish have a good day. i have some models like this: ``` class BaseModel(PolymorphicModel): review_average = models.FloatField(default=0.0, verbose_name=_('Review Average')) tags = tagulous.models.TagField(to=Tag, blank=True) sort = models.IntegerField(default=0, verbose_name=_('Sort')) ```...
We have a case where we need to track the status change on the model. This is done by assigning an current status attribute in the _init_ method. In tests...