django.core.serializers.serialize doesn't deal with proxy models
|Reported by:||lakin||Owned by:||nobody|
|Cc:||anssi.kaariainen@…, charette.s@…||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
If you try to serialize a proxy=True model - you get no fields serialized.
I wish I had more time to make a test case, but I don't at the moment. The easy test case is to make a model, make another model that proxies to the original model. Insert a row of data, and then serialize an instance of both models to see that the proxy one is empty.
Marking it as 1.1 as that is what I'm using and I haven't had time to double check the other versions.
Change History (12)
comment:7 Changed 5 years ago by
|Status:||closed → reopened|
|Triage Stage:||Ready for checkin → Accepted|
comment:8 Changed 5 years ago by
|Triage Stage:||Accepted → Ready for checkin|