google-code-export / django-page-cms

Automatically exported from code.google.com/p/django-page-cms
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Update from r653->r654 throwing error #157

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Update from r653 to r654 (with PAGE_USE_SITE_ID = True)
2. Go to a published page
3. Refresh

What is the expected output? What do you see instead?
Throws 500 exception "'QuerySet' object has no attribute 'from_path'" 
pages\views.py in details, line 48

What version of the product are you using? On what operating system?
r654 and newer (checked latest)

Please provide any additional information below.
Apparently it has to do with this line #48 in views.py: 

current_page = Page.objects.on_site().from_path(path, lang)

And I have PAGE_USE_SITE_ID = True in settings. When I set it to False it 
works.

Original issue reported on code.google.com by ronaldwh...@gmail.com on 26 Aug 2009 at 1:24

GoogleCodeExporter commented 9 years ago
I too am getting this error.  I am on r656.  FYI.

Original comment by ljernej...@gmail.com on 26 Aug 2009 at 4:57

GoogleCodeExporter commented 9 years ago
What about the latest revision?

Original comment by batiste....@gmail.com on 26 Aug 2009 at 8:15

GoogleCodeExporter commented 9 years ago
r665 looks to be working for me.

Original comment by ljernej...@gmail.com on 26 Aug 2009 at 1:55

GoogleCodeExporter commented 9 years ago

Original comment by batiste....@gmail.com on 26 Aug 2009 at 3:19