Commit Graph

4 Commits

Author SHA1 Message Date
Sergey Tsaplin 9cfbd2b11b Empty string is a valid JSON-key (#4252)
* Empty string is a valid JSON-key

Signed-off-by: Sergey Tsaplin <me@sergeytsaplin.com>

* Update changes/4253-sergeytsaplin.md

Co-authored-by: Samuel Colvin <samcolvin@gmail.com>

* has_alias attribute of the ModelField also should be a result of comparison with None

Signed-off-by: Sergey Tsaplin <me@sergeytsaplin.com>

Co-authored-by: Samuel Colvin <samcolvin@gmail.com>
2022-08-03 16:27:49 +01:00
Samuel Colvin 2ee6811655 remove DeprecationWarnings from v1 release & fix coverage (#2415)
* remove DeprecationWarnings from v1 release

* coverage on unpickling Undefined private attributes

* coverage on undefined in copy, allow Undefined to be pickled unchanged

* fix coverage of model._iter()
2021-02-26 14:43:47 +00:00
Pavel Ilyin d8262131d2 No dict update (#1244)
* update_forward_refs now modifies only a copy of __dict__ of cls.__module__

* changes

* test for update_forward_refs

* fixed brackets

* black changes fixed

* make format

Co-authored-by: Samuel Colvin <s@muelcolvin.com>
2020-03-17 19:57:13 +00:00
Samuel Colvin 943a8a06e5 change alias priority logic (#1178)
* fix alias priority so alias_generators don't take priority

* improve test names

* remove debugs

* Apply suggestions from code review

* more tests and allow custom alias_priority on fields

* precedence tests and docs

* tweaks and add change

* suggestions
2020-01-24 10:31:16 +00:00