django/django — pull request #144 by datajockey (2012-04-26 22:27:08+00:00)
Title: Fix for flatpages test failure where SITE_ID 1 is hardcoded to example.com in Django 1.4.X

I have an initial_data fixture that defines site 1 to be localhost:8000 for development. The upgrade to Django 1.4 caused a failure in a flatpages test where the site name for site 1 was hardcoded to example.com.

This fix looks up the site name for site 1 and places that in the comparison string.