UpdateCacheMiddleware test fix for django==1.4.2

--HG--
branch : dev