def __contains__(self, item):
return item in self.__dict__<EOL>
Custom implementation of membership test.

        Implement the ``__contains__`` method for catering to the common case
        of finding out if a model contains a certain key (``key in model``).