Open Silviu-Surcica opened 6 years ago
@Silviu-Surcica
Hi, thanks for reporting an issue!
Yep, fields
and exclude
attributes of Meta
don't take into account explicitly declared fields.
I'll check if that's inconsistent with pure DRF, and if so, will create tests and fix this.
If I use BasicUnitSerializer for units, the exclude does not work. But if I let units be serialized by a default NestedSerializer, then the exclude works.