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/3475945.xbvqS7dl4M%40fritzbook.
For more options, visit https://groups.google.com/d/optout.