Many Thanks
On Friday, 6 July 2018 16:13:35 UTC+1, Melvyn Sopacua wrote:
>
> On vrijdag 6 juli 2018 16:46:08 CEST 'dtdave' via Django users wrote:
> > Many thanks for the help on this. I have implemented the following:
> > models.py
> > start_date = models.DateField(null=True, blank=True,)
> > asap = models.BooleanField(default=False)
> >
> > I have amend my manager so the order is right on the template.
> > The template is where I am going wrong.
> > This what I have started with in my template;
> > {% if 'job.asap' == 'True' %}
> > <p>Start Date: {{job.asap}}</p>
>
> {% if job.asap %}
> <p>Start Date: {% trans "as soon as possible" %}</p>
> {% else %}
> <p> Start Date: {{job.start_date}}</p>
> {% endif %}
>
> --
> Melvyn Sopacua
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/cea85bf9-3b83-4a3a-b436-b3e2d447c575%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.