It must be more simple than the nothingness that searching google is
showing me... how can I to get back to the last page (say page
2: http://127.0.0.1:8000/articlelist/2, which works) in a ListView after an
UpdateView.
I can go to a random page - 10 in the below UpdateView - but how do I
capture the referring ListView's current page and then feed that back in
get_success_url after the update?
class ArticleEditView(UpdateView):
model = Article
template_name = 'edit_template.html'
form_class = ArticleForm
def get_success_url(self):
return reverse('editor_listview', kwargs={'page': 10})
Thank you
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/646c8295-a5c5-42b4-b3a9-e9a477c1341b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.