I have three url pattern match to the same url name
url(r'^report/newreport/(?P<number>\w+)/$', 'report.views.newreport',name='report_newreport'),
url(r'^report/newreport/(?P<number>\w+)/(?P<edit>\w+)/$', 'report.views.newreport',name='report_newreport'),
url(r'^report/newreport/$', 'report.views.newreport',name='report_newreport'),
When I tried to use 'url' to get full url like this
<td><a href='{% url report_newreport report.applicationnumber %} ' target='_blank' >{{task.applicationnumber}}</a> <br/>
I got an error
Caught NoReverseMatch while rendering: Reverse for 'report_newreport' with arguments '('',)' and keyword arguments '{}' not found.
Is that because I matched three urls to one url name? I think this shoudl be fixed by matching these three patterns to three different url names. Is that other way I can fix this error
Thanks