On Thu, Jul 28, 2011 at 12:27 PM, morning yao <yitai...@gmail.com> wrote:
> DailyReport.objects.filter(DailyReport_Timestamp__month=int(month.split('-')
> [0]),DailyReport_Timestamp__month=int(month.split('-')[1])).order_by("-
> DailyReport_Timestamp")
>
> so,where is error?
>

You can't supply the same argument twice to a method call. On this
line you are supplying DailyReport_Timestamp__month twice.

Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
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