mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-03 12:00:12 +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
|
@ -146,6 +146,8 @@ class Field(object):
|
|||
self._errors = []
|
||||
self._value = None
|
||||
self._name = None
|
||||
|
||||
super(Field, self).__init__()
|
||||
|
||||
@property
|
||||
def errors(self):
|
||||
|
|
Loading…
Reference in New Issue
Block a user