diff --git a/model_utils/fields.py b/model_utils/fields.py index ddb69226..35f0cc80 100644 --- a/model_utils/fields.py +++ b/model_utils/fields.py @@ -330,7 +330,7 @@ def __init__(self, editable=False, max_length=128, factory=None, **kwargs): """ if factory is not None and not isinstance(factory, Callable): - raise TypeError("'factory' should either be a callable not 'None'") + raise TypeError("'factory' should either be a callable or 'None'") self._factory = factory kwargs.pop('default', None) # passing default value has not effect.