Is it possible to group models from different apps into 1 admin block?
For example, my structure is
project/
review/
models.py - class Review(models.Model):
followers/
models.py - class Followers(models.Model):
admin.py
In followers/admin.py
, I call
admin.site.register(Followers)
admin.site.register(Review)
This is to group them inside 1 admin block for administrators to find things easily.
I tried that, but Review
model isn't showing up inside Followers
admin block and I couldn't find documentation about this.
Django Admin groups Models to admin block by their apps which is defined by
Model._meta.app_label
. Thus registeringReview
infollowers/admin.py
still gets it to appreview
.So make a proxy model of
Review
and put it in the 'review' appAlso, you could put
Followers
andReview
to same app or set sameapp_label
for them.Customize admin view or use 3rd-part dashboard may achieve the goal also.