1👍
✅
I think, you can use django-admin-notifications module for that.
Install and configure it for your project.
Then define a new notifications.py
file in Contacts
app like this:
import admin_notifications
from models import Contacts
def notification():
count = Contacts.objects.filter(status=Contacts.STATUS_NEW).count()
if count:
return 'You have {} new contacts <a href="/admin/contacts/">message</a>'.format(count)
else:
return ''
admin_notifications.register(notification)
Source:stackexchange.com