You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
I'm studying the Admin docs trying to figure out how to launch a
non-Admin page when required.
Django 1.11 and Pythons 2.7/3.6
The parts which look promising are ...
[1] ModelAdmin.response_add()
[2] ModelAdmin.response_change()
[3] ModelAdmin.add_view()
[4] ModelAdmin.change_view()
and
[5] admin.ModelAdmin.form
The use-case is ...after saving, detect whether a token (from a payment
gateway) exists in a subscription record and if not, launch a non-Admin
Django page/form to interface with the payment gateway.
I have tried unsuccessfully to launch any of a form, view or template
from the model save() method.
Has anyone had a similar Admin use-case and found a good way of tackling it?
Maybe you can get some ideas from them? Basically you can create your own view and use that to display data in a template that inherits from, for example, the Django admin form template. A bit tricky first time but then it seems straightforward.
Derek
Mike Dewhirst
unread,
Jan 16, 2019, 2:37:40 AM1/16/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message