diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-08-25 22:51:30 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-08-25 22:51:30 +0000 |
| commit | 25264c86048d442a4885dfebae94510e2fa0c1e4 (patch) | |
| tree | bb02799b624fb0d6f931d208509ffbb50d00e358 /django/views/defaults.py | |
| parent | aec0a73d73324820c767758afd250fc21a2896ef (diff) | |
Fixed #122 -- BIG, BACKWARDS-INCOMPATIBLE CHANGE. Changed model syntax to use fieldname=FieldClass() syntax. See ModelSyntaxChangeInstructions for important information on how to change your models
git-svn-id: http://code.djangoproject.com/svn/django/trunk@549 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/views/defaults.py')
| -rw-r--r-- | django/views/defaults.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/views/defaults.py b/django/views/defaults.py index 4da2643c3d..c75bc6880e 100644 --- a/django/views/defaults.py +++ b/django/views/defaults.py @@ -43,13 +43,13 @@ def page_not_found(request): from django.conf.settings import APPEND_SLASH, SITE_ID path = request.get_full_path() try: - r = redirects.get_object(site_id__exact=SITE_ID, old_path__exact=path) + r = redirects.get_object(site__id__exact=SITE_ID, old_path__exact=path) except redirects.RedirectDoesNotExist: r = None if r is None and APPEND_SLASH: # Try removing the trailing slash. try: - r = redirects.get_object(site_id__exact=SITE_ID, old_path__exact=path[:path.rfind('/')]+path[path.rfind('/')+1:]) + r = redirects.get_object(site__id__exact=SITE_ID, old_path__exact=path[:path.rfind('/')]+path[path.rfind('/')+1:]) except redirects.RedirectDoesNotExist: pass if r is not None: |
