Insanely weird django-mongoengine error -
this weird , illogical error have ever seen. using django+mongoengine, , lets view is:
def index(request, template_name='index.html'): articles = article.objects.order_by('-date_added') in articles: # test see if ordering works print i.title # ok, prints correctly titles ordered_by "-date_added" return render_to_response( template_name, locals(), context_instance=requestcontext(request))
but when loop through articles in index.html, presented if ordering order_by('date_added')
am drunk? missing something? suggestions? gonna drive me crazy...
solved: issue mongoengine's version. install dev branch of mongoengine...
Comments
Post a Comment