Skip to content
Snippets Groups Projects
Commit 3bdc1def authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Add comment warning about reusing the read only widget

parent 2a8a6748
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,7 @@ class ReadonlyWidget(Widget):
def get_context(self, *args, **kwargs):
context = super().get_context(*args, **kwargs)
try:
# Hard coded accessing the related model (form) BEWARE if reusing
edit_link = reverse_edit(self.value.form)
except AttributeError:
pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment