Skip to content

Commit 7fd664f

Browse files
committed
Fix error message of UrlsafeTokenField's factory arg check
1 parent e7dfdd0 commit 7fd664f

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
@@ -330,7 +330,7 @@ def __init__(self, editable=False, max_length=128, factory=None, **kwargs):
330330
"""
331331

332332
if factory is not None and not isinstance(factory, Callable):
333-
raise TypeError("'factory' should either be a callable not 'None'")
333+
raise TypeError("'factory' should either be a callable or 'None'")
334334
self._factory = factory
335335

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

0 commit comments

Comments
 (0)