On Mon, Oct 21, 2013 at 5:06 PM, Neil McLaughlin <
neil.mclaugh...@agileyorkshire.org> wrote:

> I keep getting the following error when running my tests:
> TypeError: order() expects a Property or query Order; received
> DateTimeProperty('date')
> from the line: next_event = Event.query(Event.date >=
> datetime.datetime.now()).order(Event.date).fetch(1)
> Can anyone suggest what is going on
>
>

Can you try changing out the *order* code to this and see if it works?

*.order('-date')*

Are you using the datastore stub to test or another stub/service?


-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to