mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-16 20:00:23 +00:00
Fix error message of UrlsafeTokenField's factory arg check
This commit is contained in:
parent
994d6c1c42
commit
e34de65480
1 changed files with 1 additions and 1 deletions
|
|
@ -347,7 +347,7 @@ class UrlsafeTokenField(models.CharField):
|
|||
"""
|
||||
|
||||
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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue