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

Attribute error instead of 404 while entering unexisting slugs #106

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I try to access an unexisting slug I get the following error:

'NoneType' object has no attribute 'get_absolute_url'

instead of a 404 page on 1.0.3

I solved the problem editing views.py line 34, now i have:

34    if current_page and request.META['PATH_INFO'] !=
current_page.get_absolute_url():

instead of:

34    if request.META['PATH_INFO'] != current_page.get_absolute_url():

Original issue reported on code.google.com by hugoase...@gmail.com on 21 May 2009 at 11:21

GoogleCodeExporter commented 9 years ago

Original comment by batiste....@gmail.com on 4 Jun 2009 at 12:46