Changes between Initial Version and Version 1 of Ticket #19698
- Timestamp:
- Jan 30, 2013, 11:44:58 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #19698 – Description
initial v1 1 When you delete a Site instance, i.e. Site.objects.get_current().delete(), the cache is cleared. However, if you delete all sites, Site.objects.all().delete(), the cache is not cleared.1 When you delete a Site instance, i.e. `Site.objects.get_current().delete()`, the cache is cleared. However, if you delete all sites, `Site.objects.all().delete()`, the cache is not cleared. 2 2 3 {{{ 3 4 def test_delete_all_sites_clears_cache(self): 4 5 """ … … 11 12 Site.objects.all().delete() 12 13 self.assertRaises(Site.DoesNotExist, Site.objects.get_current) 14 }}}