title: How to open django admin edit object page?
body: <p>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:</p>
  
  <pre><code>&lt;a onclick="window.open('/admin/posts/post/{{post.pk}}/', 'newwindow', 'width=auto, height=auto'); return false;"&gt;
  </code></pre>
  
  <p>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...</p>
  
  <p>But I need to close automatically window after "Save" button and refresh page from which user clicks "edit" button.</p>
  
  <p>We can also see such window, when clicking on the icon "Change selected objectname", near foreign key in Django admin page.</p>
  
  <p>Do you understand what I need? What should I do?</p>
  
  <p>Thanks a lot.</p>