def tearDown(self):
     try:
         revision.unregister(User)
     except:
         pass
Exemple #2
0
 def tearDown(self):
     """Deletes the versioned site model."""
     revision.unregister(Site)
     self.site.delete()
     Version.objects.all().delete()