Commit c55c14e
* 11670: Add optional weight to DeviceType import
This is 1 of 2 commits to address issue #11670
To maintain consistency, the import design of the DeviceType weight follows the
same pattern used for importing weight and weight units in DCIM Racks.
* Closes #11670: Add weight to ModuleType import
This is commit 2 of 2 to address and close #11670.
To maintain consistency, the import design of the ModuleType weight follows the
same pattern used for importing weight and weight units in DCIM Racks.
* Merge tests; misc cleanup
---------
Co-authored-by: jeremystretch <[email protected]>
1 parent e1b7a3a commit c55c14e
File tree
3 files changed
+45
-5
lines changed- netbox/dcim
- forms
- models
- tests
3 files changed
+45
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
295 | 304 | | |
296 | 305 | | |
297 | 306 | | |
298 | 307 | | |
299 | 308 | | |
300 | | - | |
| 309 | + | |
301 | 310 | | |
302 | 311 | | |
303 | 312 | | |
| |||
306 | 315 | | |
307 | 316 | | |
308 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
309 | 327 | | |
310 | 328 | | |
311 | 329 | | |
312 | | - | |
| 330 | + | |
313 | 331 | | |
314 | 332 | | |
315 | 333 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
187 | 189 | | |
188 | 190 | | |
189 | 191 | | |
| |||
361 | 363 | | |
362 | 364 | | |
363 | 365 | | |
| 366 | + | |
| 367 | + | |
364 | 368 | | |
365 | 369 | | |
366 | 370 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
681 | 681 | | |
682 | 682 | | |
683 | 683 | | |
684 | | - | |
685 | 684 | | |
686 | 685 | | |
| 686 | + | |
687 | 687 | | |
| 688 | + | |
| 689 | + | |
688 | 690 | | |
| 691 | + | |
| 692 | + | |
689 | 693 | | |
690 | 694 | | |
691 | 695 | | |
| |||
794 | 798 | | |
795 | 799 | | |
796 | 800 | | |
797 | | - | |
| 801 | + | |
798 | 802 | | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
799 | 811 | | |
800 | 812 | | |
801 | 813 | | |
| |||
1019 | 1031 | | |
1020 | 1032 | | |
1021 | 1033 | | |
| 1034 | + | |
| 1035 | + | |
1022 | 1036 | | |
1023 | 1037 | | |
1024 | 1038 | | |
| |||
1082 | 1096 | | |
1083 | 1097 | | |
1084 | 1098 | | |
1085 | | - | |
| 1099 | + | |
| 1100 | + | |
1086 | 1101 | | |
1087 | 1102 | | |
1088 | 1103 | | |
| |||
1105 | 1120 | | |
1106 | 1121 | | |
1107 | 1122 | | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
1108 | 1126 | | |
1109 | 1127 | | |
1110 | 1128 | | |
| |||
0 commit comments