def iteritems(self):
yield self.key_name, self.key<EOL>for k, v in self._data.items():<EOL><INDENT>yield k, v<EOL><DEDENT>
Support for the python 2 iterator of key/value pairs.
This includes the primary key name and value.

Example:

.. code-block:: python

    u = User('1')
    data = {k: v for k, v in u.iteritems()}

Or:

.. code-block:: python

    u = User('1')
    for k, v in u.iteritems():
        print("%s: %s" % (k, v)


:return: generator, a list of key/value pair tuples