Provides an iterable for all model fields.

def fields(self):
        """
        Provides an iterable for all model fields.
        """
        for attr, value in self._meta.fields.items():
            if isinstance(value, Field):
                yield attr, value