mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 04:50:12 +03:00
basic assert to ensure data is there
This commit is contained in:
parent
302ec59a5c
commit
1125c438d3
|
@ -61,6 +61,7 @@ class BaseSerializer(Field):
|
|||
"""
|
||||
|
||||
def __init__(self, instance=None, data=None, **kwargs):
|
||||
assert data is not None
|
||||
self.instance = instance
|
||||
self._initial_data = data
|
||||
self.partial = kwargs.pop('partial', False)
|
||||
|
|
Loading…
Reference in New Issue
Block a user