-
Notifications
You must be signed in to change notification settings - Fork 298
Commit ffc3ca3
Ensure that ModelSerializer fields are in same order than in DRF (#1182)
* fix(ModelSerializer): preserve field order like DRF
* test(ModelSerializer): add test_get_field_names
* docs: update changelog and authors files
---------
Co-authored-by: Oliver Sauder <os@esite.ch>1 parent a45c475 commit ffc3ca3
File tree
4 files changed
+41
-5
lines changed- rest_framework_json_api
- tests
4 files changed
+41
-5
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 | + | ||
5 | 6 |
| |
6 | 7 |
| |
7 | 8 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 | + | ||
16 | 17 |
| |
17 | 18 |
| |
18 | 19 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
309 | 309 |
| |
310 | 310 |
| |
311 | 311 |
| |
312 | - | ||
313 | - | ||
314 | - | ||
315 | - | ||
316 | - | ||
312 | + | ||
313 | + | ||
314 | + | ||
315 | + | ||
316 | + | ||
317 | 317 |
| |
318 | 318 |
| |
319 | 319 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | + | ||
3 | 4 |
| |
4 | 5 |
| |
5 | 6 |
| |
| |||
50 | 51 |
| |
51 | 52 |
| |
52 | 53 |
| |
54 | + | ||
55 | + | ||
56 | + | ||
57 | + | ||
58 | + | ||
59 | + | ||
60 | + | ||
61 | + | ||
62 | + | ||
63 | + | ||
64 | + | ||
65 | + | ||
66 | + | ||
67 | + | ||
68 | + | ||
69 | + | ||
70 | + | ||
71 | + | ||
72 | + | ||
73 | + | ||
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | ||
78 | + | ||
79 | + | ||
80 | + | ||
81 | + | ||
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | ||
86 | + |
0 commit comments