pass 'obj' parameter with object to every template

This commit is contained in:
Sanj 2012-08-15 19:54:14 +05:30
parent 3343f14ab2
commit 31d0deceac

View File

@ -85,6 +85,7 @@ class ItfModel(models.Model):
d = self.get_dict()
# d['add_form'] = self.__class__.get_add_form()
d['forms'] = self.__class__.get_forms()
d['obj'] = self
try:
edit_url = self.get_edit_url()
d['edit_url'] = edit_url