mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-02 20:54:42 +03:00
Minor typo
This commit is contained in:
parent
f4a82dd5da
commit
82094554e5
|
@ -289,7 +289,7 @@ class WritableField(Field):
|
|||
self.validators = self.default_validators + validators
|
||||
self.default = default if default is not None else self.default
|
||||
|
||||
# Widgets are ony used for HTML forms.
|
||||
# Widgets are only used for HTML forms.
|
||||
widget = widget or self.widget
|
||||
if isinstance(widget, type):
|
||||
widget = widget()
|
||||
|
|
Loading…
Reference in New Issue
Block a user