diff --git a/cherry/models/models.py b/cherry/models/models.py index 1517550..331f284 100644 --- a/cherry/models/models.py +++ b/cherry/models/models.py @@ -810,17 +810,17 @@ def _pre_resolve_relationship_field(cls): elif isinstance(field_info, ForeignKeyField): raise FieldTypeError( f"Model {cls}'s ForeignKeyField {field_name} " - f"types must be a subclass of Cherry.Model, not {type(type_)}", + f"types must be a subclass of Cherry.Model, not {type_}", ) elif isinstance(field_info, ManyToManyField): raise FieldTypeError( f"Model {cls}'s ManyToManyField {field_name} types" - f" must be a sequence type of Cherry.Model, not {type(type_)}", + f" must be a sequence type of Cherry.Model, not {type_}", ) if not check_issubclass(type_, Model): raise FieldTypeError( f"Model {cls}'s RelationshipField {field_name} types" - f" must be a subclass of Cherry.Model, not {type(type_)}", + f" must be a subclass of Cherry.Model, not {type_}", ) field_info.nullable = is_nullable field_info.related_model = type_