Skip to content

Commit e34de65

Browse files
committed
Fix error message of UrlsafeTokenField's factory arg check
1 parent 994d6c1 commit e34de65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

model_utils/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def __init__(self, editable=False, max_length=128, factory=None, **kwargs):
347347
"""
348348

349349
if factory is not None and not isinstance(factory, Callable):
350-
raise TypeError("'factory' should either be a callable not 'None'")
350+
raise TypeError("'factory' should either be a callable or 'None'")
351351
self._factory = factory
352352

353353
kwargs.pop('default', None) # passing default value has not effect.

0 commit comments

Comments
 (0)