Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
authored January 16, 2006

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/contrib/sites/models.py
4  django/contrib/sites/models.py
@@ -3,8 +3,8 @@
3 3
 
4 4
 class SiteManager(models.Manager):
5 5
     def get_current(self):
6  
-        from django.conf.settings import SITE_ID
7  
-        return self.get_object(pk=SITE_ID)
  6
+        from django.conf import settings
  7
+        return self.get_object(pk=settings.SITE_ID)
8 8
 
9 9
 class Site(models.Model):
10 10
     domain = models.CharField(_('domain name'), maxlength=100)

0 notes on commit f53492d

Please sign in to comment.
Something went wrong with that request. Please try again.