Bug fix: excludes skipped for aliased nested fields when by_alias=True (#1398)

* Typo in test function name, fix #1397

* Always use a field's real name for includes/excludes

* Add changes.md file
This commit is contained in:
AlexECX
2020-04-18 12:05:20 -04:00
committed by GitHub
parent 161a12a1a1
commit 92b0bbc0f3
3 changed files with 40 additions and 9 deletions
+1
View File
@@ -0,0 +1 @@
Always use a field's real name with includes/excludes in `model._iter()`, regardless of `by_alias`.