I need to make such feature: when user clicks "edit" button, the Django should open admin page for editing this object. I have made something like this:
<a onclick="window.open('/admin/posts/post/{{post.pk}}/', 'newwindow', 'width=auto, height=auto'); return false;">
And this will open window for editing this post. But when I click on "Save" button - object saves and nothing happens else. The window stays white...
But I need to close automatically window after "Save" button and refresh page from which user clicks "edit" button.
We can also see such window, when clicking on the icon "Change selected objectname", near foreign key in Django admin page.
Do you understand what I need? What should I do?
Thanks a lot.