accessing the object inside a django admin change_form.html template Jul

When overriding the change_form.html template sometimes I need access to the object that is being edited. The change_view method provides the original object in the 'original' context variable.

You can access the object in the template using the original variable:

{{ original }}
Bookmark and Share
blog comments powered by Disqus