Django view redirect mixin ?next=url
Project description
Installation
$ [sudo] pip install django-next-view
Examples
from django_next_view.views import NextViewMixin
class MyView(NextViewMixin,...):
def post(self,request,*args,**kwargs):
...
return self.next()
add next
arg to forms/links
<form action="..." method="POST">
<input type="hidden" name="next" value="url" />
</form>
<a href="{% url 'view_name' %}?next=url">GET</a>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-next-view-2020.7.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d83ea40c566bf8b0313cf714691eb6863b116f4d7f4c8c6980a2ec47e083ecf |
|
MD5 | d05f1a8c3810ff70c93e681b99fb508e |
|
BLAKE2b-256 | 5699e2f7785b0f703d1d053b8cfcd1419700dd8bf8d0ffc52533222f0f8ea3a3 |