Closed PoByBolek closed 1 year ago
Nice catch! Would you have time to create a PR for this? I cleaned up the code for the new 4.0.0 version, removing compatibility of old Python/Django versions. That should help contributions.
Seems like I do: #161
Awesome!
In the Django docs it sounds like proxy models and regular models are basically equivalent when it comes to database access. The proxy models just add extra methods or managers that the regular models don't have.
Based on this I was also expecting that DDF reuses the lessons for concrete models for any proxy models they might have. But this doesn't seem to be the case 😞
G()
etting a proxy model works just fine, but DDF ignores any lessons that I have taught for the concrete base model.When I run the tests using
python manage.py test
, the test fails:I currently work aroung this by specifically copying the lessons for proxy models from their concrete base models. But it would be nicer if DDF supported this out of the box 😸. Maybe if
DDFLibrary.get_configuration()
andDDFLibrary.add_configuration()
checked for proxy models themselves?