mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed #8205 -- Corrected a misspelling in the API introduced in [8265] and [8274]. Thanks for the report, Simon.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8286 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -112,7 +112,7 @@ class AdminSite(object): | |||||||
|         """ |         """ | ||||||
|         return request.user.is_authenticated() and request.user.is_staff |         return request.user.is_authenticated() and request.user.is_staff | ||||||
|      |      | ||||||
|     def check_dependancies(self): |     def check_dependencies(self): | ||||||
|         """ |         """ | ||||||
|         Check that all things needed to run the admin have been correctly installed. |         Check that all things needed to run the admin have been correctly installed. | ||||||
|  |  | ||||||
| @@ -140,7 +140,7 @@ class AdminSite(object): | |||||||
|             return http.HttpResponseRedirect(request.path + '/') |             return http.HttpResponseRedirect(request.path + '/') | ||||||
|          |          | ||||||
|         if settings.DEBUG: |         if settings.DEBUG: | ||||||
|             self.check_dependancies() |             self.check_dependencies() | ||||||
|  |  | ||||||
|         # Figure out the admin base URL path and stash it for later use |         # Figure out the admin base URL path and stash it for later use | ||||||
|         self.root_path = re.sub(re.escape(url) + '$', '', request.path) |         self.root_path = re.sub(re.escape(url) + '$', '', request.path) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user