On Monday, 25 June 2012 13:07:19 UTC+1, armagan wrote:
>
> I don't know where does string come from. In shell date is a date object 
> and combine time dt is a datetime objects. It's ok. But I run the code I 
> have an errror. can't compare datetime.datetime to str. 
>
> item = Project.objects.order_by('-create_date')[:20] 
>
> delivery_date = models.DateField(_(u'Teslim Tarihi'), blank=True, null=
> True)
>

At a guess, the string is coming from the string that you return if 
delivery_date is empty.
--
DR.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/TKobVVKOHbUJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to