Skip to content

andrewpetrochenkov/django-next-view.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

readme42.com

About

Django view redirect mixin ?next=url

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages