开发者

Django admin return to page after save

开发者 https://www.devze.com 2023-02-02 02:31 出处:网络
I have 3 pages of items listed in my django application admin. After i edit one of them (lets say it is in page 2) and save my changes, i return开发者_如何学编程 to page 1 of my listing. How can i mak

I have 3 pages of items listed in my django application admin. After i edit one of them (lets say it is in page 2) and save my changes, i return开发者_如何学编程 to page 1 of my listing. How can i make it so i return to the page the item is in?

I looked into some similar questions here at stackoverflow and i believe that i need to use javascript to send a httpresponse with the location header. But how i can determine the page the item is in?

any help is appreciated


You can find a code snippet in comments for this django ticket: http://code.djangoproject.com/ticket/3777

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号