google-code-export / django-basic-apps

Automatically exported from code.google.com/p/django-basic-apps
0 stars 0 forks source link

basic.blog.post Drafts cannot be edited #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
To reproduce:
In the Django admin interface, create a blog.post with status=DRAFT
Click "Save", or even "Save and continue editing"

Instead of seeing the change_form for this object, I get a 404 error.  With
DEBUG, the message is
post object with primary key u'6' does not exist

This applies to any post whose status==DRAFT.  Maybe I'm missing something?
 I've poked through the source but I don't see anything about where it
injects a 404 response.

basic.blog Revision 50, on Gentoo, apache 2.2.8, mod_python, Python 2.4.4,
Django r7634

Original issue reported on code.google.com by AxisOfEn...@gmail.com on 18 Jun 2008 at 12:52

GoogleCodeExporter commented 9 years ago
I'm experiencing the same problem. At basic apps revision 50 and django r7920

Original comment by mccaffer...@gmail.com on 13 Jul 2008 at 7:03

GoogleCodeExporter commented 9 years ago
Looks like the problem is with the get_query_set method in the PublicManager. 
Only problem is when I remove 
the get_query_set method it screws up the get_previous_by_* methods. I'll think 
of something.

Original comment by npbor...@gmail.com on 13 Jul 2008 at 10:18

GoogleCodeExporter commented 9 years ago
This has been fixed in r51. Please use get_previous_post and get_next_post 
instead of get_previous_by_publish 
and get_next_by_publish. Thanks all!

Original comment by npbor...@gmail.com on 15 Jul 2008 at 3:51