I am using django admin and grappelli and wanted to override the default view for a certain model.
I overrode the grapelli change_form
template:
```
{% extends "grappelli:admin/change_form.html" %}
{% block javascripts %}
{{ block.super }}
<script type="text/javascript">{{Object}}</script>
{% endblock %}
```
I have 2 questions:
- How can I access the model that is passed by default by django? Neither
Object
noropts
seem to work. - How do I override the default to view (what's the method I need to override) to add new variables into template context?
Thanks in advance.