mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-28 00:49:49 +03:00
Remove unnecessary object derive
This commit is contained in:
parent
b247d9320b
commit
99e721cd35
|
@ -282,7 +282,7 @@ to your `Serializer` subclass. This is documented in the
|
||||||
|
|
||||||
To write a class-based validator, use the `__call__` method. Class-based validators are useful as they allow you to parameterize and reuse behavior.
|
To write a class-based validator, use the `__call__` method. Class-based validators are useful as they allow you to parameterize and reuse behavior.
|
||||||
|
|
||||||
class MultipleOf(object):
|
class MultipleOf:
|
||||||
def __init__(self, base):
|
def __init__(self, base):
|
||||||
self.base = base
|
self.base = base
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user