class A(models.Model):
.....
....
def link_method(self):
return "<a href='path_to_link/%s'><input type='submit' value='Label'></a>" % (self.id)
While the button link for Label
is working fine in Safari, it doesn't seem to be functioning in Firefox. The correct link path does display when hovering over the button.
The button link directs to a view
. However, on Firefox, clicking the button does not reach the view as expected, unlike Safari where everything works correctly. This leads me to believe there may be an issue with the method itself.
If anyone could identify the problem, I would greatly appreciate it.
Thank you in advance!