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 registeringReviewinfollowers/admin.pystill gets it to appreview.So make a proxy model of
Reviewand put it in the ‘review’ appAlso, you could put
FollowersandReviewto same app or set sameapp_labelfor them.Customize admin view or use 3rd-part dashboard may achieve the goal also.