cache fix for django 1.3
Merge pull request #167 from dimagi/cache-13

cache fix for django 1.3