Sorry, it were an human error!
Solved!
--
Gustavo Henrique
http://www.gustavohenrique.net
http://blog.gustavohenrique.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this grou
Hi!
I'm trying to compare 2 dates and appears the error message:
can't compare datetime.datetime to datetime.date
But in the shell is ok. why?
date1 = models.DateField()
date2 = datetime.date.today()
--~--~-~--~~~---~--~~
You received this message because you are
Doug B a écrit :
> Try just using the year attribute on the datetime instance.
>
> {% ifequal training.start_date.year training.end_date.year %}
> ...
Thanks a lot. It works !
Nicolas
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
Try just using the year attribute on the datetime instance.
{% ifequal training.start_date.year training.end_date.year %}
...
On Oct 30, 12:28 pm, Nicolas Steinmetz <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Issue : I would like to compare date at year level only. Idea is to
> display the year o
Hello,
Issue : I would like to compare date at year level only. Idea is to
display the year only once if the two date are within the same year.
I have the following model :
class Training(models.Model):
who = models.ForeignKey(User, verbose_name='Person')
title = models.CharField('Na
5 matches
Mail list logo