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
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
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
>
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
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
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
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 }}
>
>
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:
8 matches
Mail list logo