1. Kevin McCarthy
  2. django-pingback


Kevin McCarthy  committed 773800c

hack up the site framework so we can still syncdb. This will probably break things if you actually use the sites framework

  • Participants
  • Parent commits 5c67cac
  • Branches default

Comments (0)

Files changed (1)

File pingback/__init__.py

View file
 from BeautifulSoup import BeautifulSoup
-from django.contrib.sites.models import Site
+from django.contrib.sites.models import get_current_site
 from django.contrib.contenttypes.models import ContentType
 from django.core import urlresolvers
 from django.conf import settings
     log = logging.getLogger('pingback')
     log.debug('received pingback from %r to %r' % (source, target))
-    domain = Site.objects.get_current().domain
+    domain = get_current_site(None).domain
     # fetch the source request, then check if it really pings the target.