My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 33: using property introduces bug?
1 person starred this issue and may be notified of changes. Back to list
Status:  Invalid
Owner:  ----
Closed:  Oct 2008


 
Reported by mand...@gmail.com, Aug 7, 2008
Thread.objects.filter().order_by('-thread_latest_post')[:10]

Not sure if the above code is supposed to work or not, but it did in
previous versions.  Now I just get:

FieldError: Cannot resolve keyword 'thread_latest_post' into field. Choices
are: closed, forum, id, latest_post_time, post, posts, sticky,
subscription, title, views


Seems by using the thread_latest_post = property(_get_thread_latest_post)
pattern in the model may have broken something.  Or this may be a bug in
Django or my code?
Oct 7, 2008
Project Member #1 rwpoul...@gmail.com
This line isn't in the codebase any more so it isn't an issue.

If you want to do something similar, try this:

    Thread.objects.filter().order_by('-latest_post_time')[:10]

Status: Invalid

Powered by Google Project Hosting