mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	magic-removal: changed explicit settings import to qualified settings import django.contrib.sites
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1994 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -3,8 +3,8 @@ from django.utils.translation import gettext_lazy as _ | |||||||
|  |  | ||||||
| class SiteManager(models.Manager): | class SiteManager(models.Manager): | ||||||
|     def get_current(self): |     def get_current(self): | ||||||
|         from django.conf.settings import SITE_ID |         from django.conf import settings | ||||||
|         return self.get_object(pk=SITE_ID) |         return self.get_object(pk=settings.SITE_ID) | ||||||
|  |  | ||||||
| class Site(models.Model): | class Site(models.Model): | ||||||
|     domain = models.CharField(_('domain name'), maxlength=100) |     domain = models.CharField(_('domain name'), maxlength=100) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user