I have 2 views: a and b they all render to one template T. There are also a_2 and b_2 views. And T template should generate urls to the a_2 and b_2 views.
however I cannot use {% url %} because I cannot pass url name as a parametr.
I cannot generate the whole url in views because i should do it multiple times (one on a row in a table - so it could be hundreeds of links)
I do not want to write 2 exactly the same template. So the question is - how to avoid this ?