-
Notifications
You must be signed in to change notification settings - Fork 298
Closed
Labels
Description
Compared to how DRF allow nested paths in source:
https://github.com/encode/django-rest-framework/blob/master/rest_framework/fields.py#L401
DJA doesn't allow it:
parent_model_relation = getattr(parent_model, relation.source) |
Examples here: https://www.django-rest-framework.org/api-guide/fields/#source
EmailField(source='user.email')