Re: Link to urls containing slug

2017-02-03 Thread Melvyn Sopacua
As a side note: On Tuesday 31 January 2017 06:46:05 'dtdave' via Django users wrote: > url(r'^(?P[-\w]*)/(?P[-\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 uni

Re: Link to urls containing slug

2017-02-02 Thread 'David Turner' via Django users
job_id and slug of the job. >> >> Thank you, >> >> Matthew >> >> >> >> *From:* 'David Turner' via Django users [mailto:django-users@googlegro >> ups.com] >> *Sent:* Wednesday, February 1, 2017 1:44 AM >> >> *To:* django-user

Re: Link to urls containing slug

2017-02-02 Thread 'David Turner' via Django users
Use the job object you passed into the detail view to > obtain the job_id and slug of the job. > > Thank you, > > Matthew > > > > *From:* 'David Turner' via Django users [mailto:django-users@ > googlegroups.com] > *Sent:* Wednesday, February 1, 2017 1:44 AM >

RE: Link to urls containing slug

2017-02-01 Thread Matthew Pava
to obtain the job_id and slug of the job. Thank you, Matthew From: 'David Turner' via Django users [mailto:django-users@googlegroups.com] Sent: Wednesday, February 1, 2017 1:44 AM To: django-users@googlegroups.com Subject: Re: Link to urls containing slug Hi Matthew I think I migh

Re: Link to urls containing slug

2017-01-31 Thread 'David Turner' via Django users
bApplication > model in order for that to work and that you passing job_application in > through the context in the template. > > If you don’t have that method, you could use the {% url %} tag, but you > would have to provide the pk and slug as arguments. > > slug=job_appl

RE: Link to urls containing slug

2017-01-31 Thread Matthew Pava
and slug as arguments. {{ job_application }} Good luck! From: 'David Turner' via Django users [mailto:django-users@googlegroups.com] Sent: Tuesday, January 31, 2017 9:09 AM To: django-users@googlegroups.com Subject: Re: Link to urls containing slug I had tried that but unfortunately

Re: Link to urls containing slug

2017-01-31 Thread 'David Turner' via Django users
I had tried that but unfortunately it doesn't work but thanks anyway. On 31/01/2017 14:57, Matthew Pava wrote: > > Assuming I’m understanding your question correctly, all you need to do > is reference get_absolute_url in your template. > > Something like so: > > > > {{ job_application }} > >

RE: Link to urls containing slug

2017-01-31 Thread Matthew Pava
Assuming I’m understanding your question correctly, all you need to do is reference get_absolute_url in your template. Something like so: {{ job_application }} From: 'dtdave' via Django users [mailto:django-users@googlegroups.com] Sent: Tuesday, January 31, 2017 8:46 AM To: Django users Subject: