I have a third party app in my proyect and I want to add one model class and some nctionality in the admin page.
In particular, I started using django-push-notifications to send push notifications to users. The problems are:
- Admin app doesn't come with a button to send notifications.
- The models and the views doesn't contemplate the option to send push notifications using the admin page.
I solved the first problem overriding the app_index.html
template of the app. No problem here.
The problem is when I try to add functionality to that button. I need that when the button is pressed, it shows a modal like this one where I can enter things that are not in the original model.
For example, it would be useful to have a model class "Notification" with fields like title, body, image, icon, a dropdown list of topics, etc. Then, when I press the button "SEND PUSH" in the admin page, a pop up is displayed with a form to enter those fields. And finally, when I want to send the notifications, a view (I guess...) receive these values and send the notifications (in this way or this way).
Any suggestions?