django-cachebot icon indicating copy to clipboard operation
django-cachebot copied to clipboard

Not possible to use with django.contrib.auth.models.User

Open coderholic opened this issue 14 years ago • 1 comments

I noticed that the User models were never getting cached, so try to override the default manager by monkey patching it

User.objects = CacheBotManager()

This results in an error though, because queryset.model is None. Is there another way that I should be overriding the User manager, or is there a fundamental limitation with cachebot that means I can't cache User objects?

coderholic avatar Aug 11 '11 15:08 coderholic

+1

dot2code avatar Sep 17 '12 14:09 dot2code