AttributeError: 'wrapper_descriptor' object has no attribute '__code__'

Possible duplicate: Saving and using a model