I want to override
the ModelAdmin
. But I want to include the functionalities of two models
into one. However I'm not considering merging the two models into one. Is there any other way in which I can override
it and include the functionalities of both of my models
into one ModelAdmin
?
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Django __str__ returned non-string (type NoneType)
- Evil ctypes hack in python
It depends on a relation between your models. Take a look to InlineModelAdmin:
https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.InlineModelAdmin