Add admin edit form buttons (work with django 1.6)
I can't find any workable solution, so I wrote it. (Checked it on Django 1.6)
- admin
- form
- edit
- button
I can't find any workable solution, so I wrote it. (Checked it on Django 1.6)
NOTE: this is for **newforms-admin** I need edit links for items on my site, outside of the django admin -- however, I'm lazy, and don't want to build my own edit forms when there's a perfectly nice admin already there. Trick is, I need to be able to click a link to the django admin edit page for an item, and have it return to the calling page after saving. This chunk of code does the trick (the "real" version extra cruft, naturally) -- the links will bring up the django admin editor, then return to the calling page after saving.
2 snippets posted so far.