81ca455fef
Move array_to_range(), array_to_string(), deepmerge(), drange(), flatten_dict(), and shallow_compare_dict() to utilities.data
2024-03-22 08:59:52 -04:00
bbb8b7d010
Move to_grams() & to_meters() from utilities.utils to utilities.conversion
2024-03-22 08:59:52 -04:00
a9bb4c5c3e
Move choice sets from utilities.choices to netbox.choices
2024-03-22 08:59:52 -04:00
25e67eb555
Merge branch 'develop' into feature
2023-12-15 16:52:42 -05:00
d2c3a39ebb
14401 validate rack startion position > 0
2023-12-06 15:16:03 -05:00
c4e765c4a8
Closes #14141 : translation cleanup ( #14143 )
...
* Translations cleanup
* Tweak variable names; misc string cleanup
* Misc cleanup
2023-10-30 13:38:03 -04:00
7274e75b26
13230 Allow Devices to be excluded from Rack utilization ( #14099 )
...
* 13230 add exclusion flag to device type
* 13230 forms, detail views
* 13230 add tests
* 13230 extraneous model field
* 13230 extraneous form field
* Update netbox/dcim/forms/bulk_edit.py
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
* 13230 review feedback
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-10-24 11:29:24 -04:00
2afce6c94b
Introduce ContactsMixin
2023-08-04 10:15:50 -04:00
14e23c3d00
Introduce ImageAttachmentsMixin
2023-08-04 10:15:50 -04:00
caedc8dbe3
Closes #13352 : Translation support for model verbose names ( #13354 )
...
* Update verbose_name & verbose_name_plural Meta attributes on all models
* Alter makemigrations to ignore verbose_name & verbose_name_plural changes
2023-08-03 10:41:10 -04:00
0bb86f1e7d
Replaces device_role with role on device model ( #13342 )
...
* replaces device_role with role on device model #6391
* fixes lint issue #6391
* revert the database user
* revert test_runner comment
* changes as per review
* Update references to device_role column in UserConfigs
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-08-02 09:55:52 -04:00
83bebc1bd2
Closes #13132 : Wrap verbose_name and other model text with gettext_lazy() (i18n)
...
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-07-31 11:28:07 -04:00
eff4a3741c
12175 rack with starting unit > 1 ( #12778 )
...
* 12175 add rack starting unit
* 12175 rack starting unit to svg
* verify devices can still fit if change rack starting_unit
* 12175 fix migration
* 12175 fix typo and test
* 12175 fix test
* 12175 fix max height calc display
* Misc cleanup & fixes
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-06-22 09:09:01 -04:00
518fd8cca6
12794 change User ref to get_user_model ( #12905 )
...
* 12794 change User ref to get_user_model
* 12794 call get_user_model once in tests
* 12794 call get_user_model once in tests
* 12794 use settings.AUTH_USER_MODEL for FK reference
2023-06-22 08:26:50 -04:00
6ef333ea68
Fixes #12885 : Permit mounting of devices in U100 ( #12901 )
...
* Fixes #12885 : Permit mounting of devices in U100
* Define a RACK_U_HEIGHT_MAX constant
2023-06-15 15:00:45 -04:00
01d9e0afb6
Round rack power utilization to nearest 0.1%
...
Fixes #12838
2023-06-08 14:31:46 +01:00
08017c51f6
Merge branch 'develop' into feature
2023-04-07 13:00:00 -04:00
b032742418
Closes #12133 : Move any instance mutations inside clean() to save()
2023-04-03 16:26:07 -04:00
c44eb65993
Closes #11325 : Move help_texts from model forms to models
2023-03-01 17:31:54 -05:00
0b100b8fc8
Closes #10675 : Add max_weight field to track maximum load capacity for racks
2022-12-09 12:45:02 -05:00
d0e0c2ff8b
Merge branch 'develop' into feature
2022-11-30 16:21:20 -05:00
281934cf34
Fixes #11047 : Cloning a rack reservation should replicate rack & user
2022-11-30 15:37:50 -05:00
ebf555e1fb
Use strings to specify prerequisite models
2022-11-16 17:22:09 -05:00
6eba5d4d96
10300 initial translation support use gettext
2022-11-11 08:47:29 -05:00
bc6b5bc4be
Closes #10545 : Standardize description & comment fields on primary models ( #10834 )
...
* Standardize description & comments fields on primary models
* Update REST API serializers
* Update forms
* Update tables
* Update templates
2022-11-04 08:28:09 -04:00
e2f5ee661a
Clean up redundant NestedGroupModel, OrganizationalModel fields
2022-11-03 13:59:44 -04:00
d773f4e62a
Closes #9832 : Add mounting_depth field to rack model
2022-10-27 10:50:54 -04:00
204c10c053
9654 device weight ( #10448 )
...
* 9654 add weight fields to devices
* 9654 changes from code review
* 9654 change _abs_weight to grams
* Resolve migrations conflict
* 9654 code-review changes
* 9654 total weight on devices
* Misc cleanup
Co-authored-by: Jeremy Stretch <jstretch@ns1.com >
2022-09-30 16:31:04 -04:00
f51415cf2c
Replace unique_together with UniqueConstraints
2022-09-27 15:35:24 -04:00
0cfe2d882d
#10176 fix space utilization for rack
2022-08-30 16:16:15 -07:00
38a8ddcd77
#6454 fix merge conflicts
2022-08-18 15:31:54 -07:00
928dff6b68
#6454 add prerequisite alert
2022-08-18 15:11:03 -07:00
eb3d3dcbc4
#6454 add prerequisite alert
2022-08-18 13:58:40 -07:00
8cd5a24409
#9414 : Clean up clone_fields on all models
2022-08-11 09:58:37 -04:00
a6be8dccf5
Fixes #9847 : Respect desc_units when ordering rack units
2022-07-26 15:45:47 -04:00
9a7f3f8c1a
Cleanup for #9102
2022-07-07 12:48:44 -04:00
9d35a9d912
Fix bug with path padding
2022-06-27 15:34:54 -04:00
fcd1daaf79
Update power utilization calculations for new cabling model
2022-06-27 14:34:08 -04:00
fc02e15fb1
Closes #4434 : Enable highlighting devices within rack elevations
2022-06-24 11:04:38 -04:00
9c214622a1
Closes #4350 : Illustrate reservations vertically alongside rack elevations
2022-06-21 16:30:27 -04:00
278891c262
Fix rack utilization calculation
2022-06-20 12:07:59 -04:00
84f0561712
Initial work on half-height RUs
2022-06-20 12:05:06 -04:00
22908a12e9
Merge branch 'develop' into feature
2022-03-25 10:38:44 -04:00
1278429518
Closes #8232 : Add color show full 100% utilization ( #8816 )
...
* Closes #8232 : Add color show full 100% utilization
* change rounding
* change rounding
* fix hard code html
* format
2022-03-25 09:52:13 -04:00
1319b62acb
Standardize on get_FOO_color() method for returning ChoiceField colors
2022-02-11 14:25:13 -05:00
71d3dc6e44
Improve ChoiceFieldColumn to not rely on model method to derive label color
2022-02-10 16:29:19 -05:00
c5650bb278
Rename PrimaryModel to NetBoxModel
2022-01-26 20:57:14 -05:00
cdae0c2bef
Remove extras_features() decorator
2022-01-19 15:16:10 -05:00
0d3b50a5e5
Support CSS class definition directly in CHOICES iterable
2021-12-16 10:03:23 -05:00
d529c1b5b3
Housekeeping: Use RestrictedQuerySet for default manager on base models
2021-11-11 15:04:22 -05:00