Fixed reverse sites_tests failures introduced in refs #24834.

This commit is contained in:
Tim Graham 2015-06-18 16:25:32 -04:00
parent 20c6ba6ffa
commit 0d97e73d95
1 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,9 @@ class SitesFrameworkTests(TestCase):
) )
self.site.save() self.site.save()
def tearDown(self):
Site.objects.clear_cache()
def test_site_manager(self): def test_site_manager(self):
# Make sure that get_current() does not return a deleted Site object. # Make sure that get_current() does not return a deleted Site object.
s = Site.objects.get_current() s = Site.objects.get_current()