Fixed payment transaction bug action
This commit is contained in:
parent
05f1b1e672
commit
06bfa2c767
|
@ -113,10 +113,10 @@ def _format_display_objects(modeladmin, request, queryset, related):
|
||||||
)
|
)
|
||||||
subobjects = []
|
subobjects = []
|
||||||
attr, verb = related
|
attr, verb = related
|
||||||
for related in getattr(obj.transactions, attr)():
|
for trans in getattr(obj.transactions, attr)():
|
||||||
subobjects.append(
|
subobjects.append(
|
||||||
mark_safe('Transaction: <a href="{}">{}</a> will be marked as {}'.format(
|
mark_safe('Transaction: <a href="{}">{}</a> will be marked as {}'.format(
|
||||||
change_url(related), related, verb))
|
change_url(trans), trans, verb))
|
||||||
)
|
)
|
||||||
objects.append(subobjects)
|
objects.append(subobjects)
|
||||||
return {'display_objects': objects}
|
return {'display_objects': objects}
|
||||||
|
|
Loading…
Reference in a new issue