Changes between Initial Version and Version 1 of Ticket #19698


Ignore:
Timestamp:
Jan 30, 2013, 11:44:58 AM (12 years ago)
Author:
Claude Paroz
Comment:

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.
     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}}}
Back to Top