pass 'obj' parameter with object to every template
This commit is contained in:
parent
3343f14ab2
commit
31d0deceac
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user