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.12.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d6a51a4f867553067bd5c2d36b0088af6f5e6931340140f4248213b3f04d22f |
|
MD5 | ab62ecf7350674b4afd91b503e9faa25 |
|
BLAKE2b-256 | e359ace3481140dfa901668aeddd5a3278904d1fa8403277fadbcb4f181546e3 |