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.4.28.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c5e730285bbb48b3f5728fb83c903d4b6e096124128bb605d45fc463aa9de33 |
|
MD5 | 9d4a88c0948854eb1026e538745677ea |
|
BLAKE2b-256 | 3a96e60a8c8ef931402ee494e86822e0ea82ef3a5fe268c65ff3ef63692a5f79 |