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
?
Asked
Active
Viewed 78 times
0

Indradhanush Gupta
- 4,067
- 10
- 44
- 60
1 Answers
2
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

Andrei Kaigorodov
- 2,145
- 17
- 17
-
Okay. Say I have the models `ModelA` and `ModelB`. `ModelB` has a `foreign key` to `ModelA`. – Indradhanush Gupta Jun 20 '13 at 00:49
-
1in this case you can use *Inline*. – Andrei Kaigorodov Jun 20 '13 at 00:51