As a side note:
On Tuesday 31 January 2017 06:46:05 'dtdave' via Django users wrote:
> url(r'^(?P<job_id>[-\w]*)/(?P<slug>[-\w]*)/$',
> views.JobDetail.as_view(), name='job_detail'),
Why use this dual structure? Id already identifies the object to retrieve, nothing else is needed.
Slug, ideally, is also unique, so pick one, not both.
--
Melvyn Sopacua
No comments:
Post a Comment