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:
parent
91f21f0641
commit
f53492df56
|
@ -3,8 +3,8 @@ from django.utils.translation import gettext_lazy as _
|
|||
|
||||
class SiteManager(models.Manager):
|
||||
def get_current(self):
|
||||
from django.conf.settings import SITE_ID
|
||||
return self.get_object(pk=SITE_ID)
|
||||
from django.conf import settings
|
||||
return self.get_object(pk=settings.SITE_ID)
|
||||
|
||||
class Site(models.Model):
|
||||
domain = models.CharField(_('domain name'), maxlength=100)
|
||||
|
|
Loading…
Reference in New Issue