Skip to content
Snippets Groups Projects
Unverified Commit ba4344e6 authored by Saurabh Kumar's avatar Saurabh Kumar
Browse files

Remove the logic to populate the self.attr

parent e0d1feee
No related branches found
No related tags found
No related merge requests found
...@@ -68,9 +68,6 @@ class ReadOnlyPanel(Panel): ...@@ -68,9 +68,6 @@ class ReadOnlyPanel(Panel):
try: try:
value = getattr(self.instance, self.panel.attr) value = getattr(self.instance, self.panel.attr)
except AttributeError: except AttributeError:
self.attr = '__'.join(
[self.instance._meta.model_name, str(self.instance.id)]
)
value = self.instance value = self.instance
if callable(value): if callable(value):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment