How does this not throw an AttributeError if self._meta has no attribute 'object_class'?