mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 21:10:13 +03:00
Allow serializer mixins to use __init__
Added a `super` call in `Field.__init__` so that serializer mixins can hook into the init function.
This commit is contained in:
parent
93b9245b87
commit
127467f21e
|
@ -147,6 +147,8 @@ class Field(object):
|
|||
self._value = None
|
||||
self._name = None
|
||||
|
||||
super(Field, self).__init__()
|
||||
|
||||
@property
|
||||
def errors(self):
|
||||
return self._errors
|
||||
|
|
Loading…
Reference in New Issue
Block a user