| Issue 33: | using property introduces bug? | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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?
|
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]