diff --git a/rest_framework/fields.py b/rest_framework/fields.py index c8f65db0e..adec05eec 100644 --- a/rest_framework/fields.py +++ b/rest_framework/fields.py @@ -101,6 +101,8 @@ def get_attribute(instance, attrs): instance = getattr(instance, attr) except ObjectDoesNotExist: return None + if instance == None: + return None if is_simple_callable(instance): try: instance = instance()