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

Just started using django polymorphic, and it's made life a lot easier so thanks! I have a view that serves a large number of objects (currently ~400), and noticed that...

enhancement
help wanted

I've found that queries done with the `PolymorphicModel`, cause a query to the database for every 100 objects in the queryset. The following code block shows the steps I used...

class A(PolymorphicModel) class B(PolymorphicModel) class C(B) class D(A, C) When trying to make migrations for class **D**, I get the following **_The field 'polymorphic_ctype' from parent model 'A' clashes with...

First of all, great package! I've been using it for years. I have a multi database setup. I need the content types created on all databases. In order to determine...

The function `get_model_perms` in `admin/childadmin.py` can't resolve a match for the /admin/ path in setups where the wsgi parameter SCRIPT_NAME is set, because `request.path` seems to be prepended with the...

Admin form with polymorphic inlines is not multipart when you use an ImageField or a FileField, which results in the files not being uploaded to the server. This issue can...

From example: ``` from django.db import models from polymorphic.models import PolymorphicModel class ModelA(PolymorphicModel): field1 = models.CharField(max_length=10) class ModelB(ModelA): field2 = models.CharField(max_length=10) class ModelC(ModelB): field3 = models.CharField(max_length=10) ``` I set in...

Given this code sample ``` only_fields = ( 'foo', 'bar', 'api_request' ) active_workers = ( worker_api.active_workers() .exclude(api_request=None) .only(*only_fields) ) for worker in active_workers: print('foobar') ``` When evaluating `active_workers` in the...

So I've read this issue extensively and tried some things out which don't work -- https://github.com/django-polymorphic/django-polymorphic/issues/198 So I'm trying to see if I can come to a middle ground where...