Merge pull request #119 from eReuse/bugfix/erasePrice
remove EreusePrice of public info of devices
This commit is contained in:
commit
19e448aedd
|
@ -217,7 +217,7 @@ class Device(Thing):
|
||||||
"""Actions than we want show in public page as traceability log section
|
"""Actions than we want show in public page as traceability log section
|
||||||
:return a list of actions:
|
:return a list of actions:
|
||||||
"""
|
"""
|
||||||
hide_actions = ['Price']
|
hide_actions = ['Price', 'EreusePrice']
|
||||||
actions = [ac for ac in self.actions if not ac.t in hide_actions]
|
actions = [ac for ac in self.actions if not ac.t in hide_actions]
|
||||||
actions.reverse()
|
actions.reverse()
|
||||||
return actions
|
return actions
|
||||||
|
|
Reference in a new issue