Don't assume all rows belong to a batch
whooops..
This commit is contained in:
parent
f20a40e818
commit
d1aaac5b16
|
@ -1376,8 +1376,7 @@ class MasterView(View):
|
||||||
parent = self.get_parent(row)
|
parent = self.get_parent(row)
|
||||||
return self.render_to_response('view_row', {
|
return self.render_to_response('view_row', {
|
||||||
'instance': row,
|
'instance': row,
|
||||||
'batch': row.batch,
|
'instance_title': self.get_instance_title(parent),
|
||||||
'instance_title': self.get_instance_title(row.batch),
|
|
||||||
'instance_url': self.get_action_url('view', parent),
|
'instance_url': self.get_action_url('view', parent),
|
||||||
'instance_editable': self.row_editable(row),
|
'instance_editable': self.row_editable(row),
|
||||||
'instance_deletable': self.row_deletable(row),
|
'instance_deletable': self.row_deletable(row),
|
||||||
|
|
Loading…
Reference in a new issue