Code

Changes between Initial Version and Version 1 of Ticket #19698


Ignore:
Timestamp:
01/30/13 09:44:58 (15 months ago)
Author:
claudep
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19698

    • Property Needs documentation unset
    • Property Needs tests unset
    • Property Patch needs improvement unset
  • 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. 
     1When 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. 
    22 
     3{{{ 
    34    def test_delete_all_sites_clears_cache(self): 
    45        """ 
     
    1112        Site.objects.all().delete() 
    1213        self.assertRaises(Site.DoesNotExist, Site.objects.get_current) 
     14}}}