Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit f53492df565ad91e18973a57fb940258bc21982d 1 parent 91f21f0
Georg Bauer authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/sites/models.py
View
4 django/contrib/sites/models.py
@@ -3,8 +3,8 @@
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)
Please sign in to comment.
Something went wrong with that request. Please try again.