Skip to content
Advertisement

Setting href to dynamic view name

JavaScript

Trying to pass urls.py view names dynamically to template and then creating hyperlink to each view. How can href be adjusted to handle it.

Advertisement

Answer

I do not know what stg.addLink returns but to make it work you need to change

from

JavaScript

to

JavaScript

BUT AGAIN it may not work. It depents what stg.editLink returns

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement