def __deepcopy__(self, memo):
obj = self.__class__()<EOL>for k, v in self.__dict__.items():<EOL><INDENT>if k in ('<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>obj.__dict__[k] = None<EOL><DEDENT>else:<EOL><INDENT>obj.__dict__[k] = copy.deepcopy(v, memo)<EOL><DEDENT><DEDENT>return obj<EOL>
Deep copy of a QuerySet doesn't populate the cache