Changeset 7825 for django/branches/newforms-admin/django/contrib
- Timestamp:
- 07/02/08 03:32:55 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/newforms-admin/django/contrib/admin/sites.py
r7737 r7825 101 101 `url` is the remainder of the URL -- e.g. 'comments/comment/'. 102 102 """ 103 if request.method == 'GET' and not request.path.endswith('/'): 104 return http.HttpResponseRedirect(request.path + '/') 105 103 106 # Figure out the admin base URL path and stash it for later use 104 107 self.root_path = re.sub(re.escape(url) + '$', '', request.path)
