def setUp(self):
    self.old_DEBUG = settings.DEBUG
    self.old_Site_meta_installed = Site._meta.installed
    settings.DEBUG = True
    ContentType.objects.clear_cache()
    db.reset_queries()
def setUp(self):
    self.old_DEBUG = settings.DEBUG
    self.old_Site_meta_installed = Site._meta.installed
    settings.DEBUG = True
    ContentType.objects.clear_cache()
    db.reset_queries()