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?
Thanks for any suggestions
Mike
[1]
https://docs.djangoproject.com/en/1.11/ref/contrib/admin/#django.contrib.admin.ModelAdmin.response_add
[2]
https://docs.djangoproject.com/en/1.11/ref/contrib/admin/#django.contrib.admin.ModelAdmin.response_change
[3]
https://docs.djangoproject.com/en/1.11/ref/contrib/admin/#django.contrib.admin.ModelAdmin.add_view
[4]
https://docs.djangoproject.com/en/1.11/ref/contrib/admin/#django.contrib.admin.ModelAdmin.change_view
[5]
https://docs.djangoproject.com/en/1.11/ref/contrib/admin/#adding-custom-validation-to-the-admin
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/f078a84e-dce0-4da7-4cef-3e2759052926%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.