1👍
✅
The name of the URL is not owner_pastes
but user_pastes
according to the following line:
url(r'^owner/(?P<owner>.+)/', 'user_pastes', name='user_pastes'),
Try this:
<a href='{% url user_pastes owner=result.object.owner.pk %}'>{{ result.object.owner }}</a>
Side-note: be careful, with Django >= 1.5, you need to surround the first parameter by quotes (otherwise it is treated as a variable):
<a href='{% url "user_pastes" owner=result.object.owner.pk %}'>{{ result.object.owner }}</a>
Source:stackexchange.com