Commits

salvator committed a17c96e

removed dependency from django.contrib.sites #25

  • Participants
  • Parent commits 331502e

Comments (0)

Files changed (1)

File admintools_bootstrap/templatetags/admintools_bootstrap.py

 from django.utils.translation import ugettext as _
 from django.contrib.admin.views.main import PAGE_VAR, ALL_VAR
 from django.conf import settings
-from django.contrib.sites.models import Site
 
 from BeautifulSoup import BeautifulSoup
 
 @register.simple_tag
 def atb_site_name():
     if 'django.contrib.sites' in settings.INSTALLED_APPS:
+        from django.contrib.sites.models import Site
         return Site.objects.get_current().name
     else:
         return _('Django site')