Wednesday, March 29, 2017

Re: NoReverseMatch when trying to use get_absolute_url with custom template tag

On Wednesday 29 March 2017 09:16:17 Will Holmes wrote:

 

> url(r'^(?P<id>\d+)$/', views.viewEvent, name='viewevent'),

 

name = viewevent

 

> def get_absolute_url(self):

> return reverse('cal:viewEvent', args=[str(self.id)],

> current_app='cal')

 

name = viewEvent

 

> Sorry about the load of code posted. Any chance anyone knows what

> might have caused this issue?

 

Do you see it now?

--

Melvyn Sopacua

No comments:

Post a Comment