Jeremy Stretch
addda0538f
Fixes #20584 : Ensure consistent validation between Interface & InterfaceTemplate ( #20589 )
2025-10-15 11:04:39 -07:00
Jeremy Stretch
d93d398afa
Closes #17166 : Remove obsolete limit_choices_to argument from ForeignKey & M2M fields
2025-04-03 09:17:20 -04:00
Jeremy Stretch
343a4af591
Closes #18022 : Extend linter (ruff) to enforce line length limit (120 chars) ( #18067 )
...
* Enable E501 rule
* Configure ruff formatter
* Reformat migration files to fix line length violations
* Fix various E501 errors
* Move table template code to template_code.py & ignore E501 errors
* Reformat raw SQL
2024-11-21 15:58:11 -05:00
Arthur Hanson
6ab0792f02
Closes #11279 : Replace _name natural key sorting with collation ( #18009 )
...
* 11279 add collation
* 11279 add collation
* 11279 add collation
* 11279 add collation
* 11279 fix tables /tests
* 11279 fix tests
* 11279 refactor VirtualDisk
* Clean up migrations
* Misc cleanup
* Correct errant file inclusion
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2024-11-15 09:32:09 -05:00
Jeremy Stretch
ef1fdf0a01
Closes #17761 : Store empty CharField choices as null
2024-10-21 13:12:05 -04:00
Jeremy Stretch
7ac6dff96d
Closes #17733 : Replace pycodestyle with ruff ( #17734 )
...
* Resolve F541 errors
* Resolve F841 errors
* Resolve F811 errors
* Resolve F901 errors
* Resolve E714 errors
* Ignore F821 errors for GraphQL mixins
* Replace pycodestyle with ruff
* Move ignores to ruff.toml
2024-10-11 07:43:46 -04:00
Jeremy Stretch
b46a89640f
Closes #17577 : Reference ModelState when determining whether an object is being created
2024-09-24 09:14:07 -04:00
Arthur Hanson
796b9e84af
Closes #10500 : Introduce support for nested modules ( #16983 )
...
* 10500 add ModularComponentModel
* 10500 add ModularComponentModel
* 10500 add to forms
* 10500 add to serializer, tables
* 10500 template
* 10500 add docs
* 10500 check recursion
* 10500 fix graphql
* 10500 fix conflicting migration from merge
* 10500 token resolution
* 10500 don't return reverse
* 10500 don't return reverse / optimize
* Add ModuleTypeModuleBaysView
* Fix replication of module bays on new modules
* Clean up tables & templates
* Adjust uniqueness constraints
* Correct URL
* Clean up docs
* Fix up serializers
* 10500 add filterset tests
* 10500 add nested validation to Module
* Misc cleanup
* 10500 ModuleBay recursion Test
* 10500 ModuleBay recursion Test
* 10500 ModuleBay recursion Test
* 10500 ModuleBay recursion Test
* Enable MPTT for module bays
* Fix tests
* Fix validation of module token in component names
* Misc cleanup
* Merge migrations
* Fix table ordering
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2024-08-05 13:13:59 -04:00
Jeremy Stretch
b532435a6d
Closes #14436 : Add indexes for all GenericForeignKey fields ( #14463 )
...
* Closes #14436 : Add PostgreSQL indexes for all GenericForeignKeys
* Add note about GFK indexes to developer docs
2023-12-07 14:02:51 -05:00
Jeremy Stretch
e15647a2ce
Closes #14153 : Filter ContentTypes by supported feature ( #14191 )
...
* WIP
* Remove FeatureQuery
* Standardize use of proxy ContentType for models
* Remove TODO
* Correctly filter BookmarksWidget object_types choices
* Add feature-specific object type validation
2023-11-16 12:12:51 -05:00
Jeremy Stretch
c4e765c4a8
Closes #14141 : translation cleanup ( #14143 )
...
* Translations cleanup
* Tweak variable names; misc string cleanup
* Misc cleanup
2023-10-30 13:38:03 -04:00
Arthur Hanson
8e251ac33c
13757 Fix ConfigContext reference to DeviceType ( #13804 )
...
* 13757 do prefetch to work around Django issue with vars in init (DeviceType)
* 13757 use self.__dict to access vars in init
* 13757 change test
2023-09-20 09:56:52 -04:00
Jeremy Stretch
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
Arthur Hanson
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
Abhimanyu Saharan
0f9fe96192
Adds rf_role to interface template ( #13199 )
...
* adds rf_role to interface template #13170
* fixed migration file conflict
* Misc cleanup
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-07-26 09:13:24 -04:00
Jeremy Stretch
5b5444f414
Closes #13269 : Cache component template counts on device types
2023-07-25 16:38:05 -04:00
Arthur
b4a3156046
9077 audit alters_data=True
2023-06-14 14:23:55 -04:00
Austin de Coup-Crank
e40e9cb406
Closes #11017 : increase maximum power draw ( #12587 )
...
* Convert power draw/max draw to PositiveIntegerField
* Closes #11017 : Increase maximum power draw
* Rename migration file for clarity
---------
Co-authored-by: jeremystretch <jstretch@netboxlabs.com >
2023-05-12 16:10:12 -04:00
jeremystretch
f49e4ee512
Merge branch 'develop' into feature
2023-04-26 15:09:51 -04:00
Arthur Hanson
38a0ed5e24
12255 inventory item device change ( #12311 )
...
* #12255 allow inventory items to change devices
* #12255 allow inventory item template to change devices
* #12255 fix init
* 12255 remove can_swtich from template model
* 12255 change to check module list
2023-04-21 12:36:11 -04:00
jeremystretch
59a6b3e71b
Merge branch 'develop' into feature
2023-04-12 17:38:16 -04:00
Arthur Hanson
8de252e34e
11432 device field ( #11567 )
...
* 11432 make device field on interface read-only on api edit call
* 11432 make device field on interface read-only on api edit call
* 11432 extend serializer change to mixin
* 11432 add readonlydevicemixin to template serializers
* 11432 change subclass ordering
* 11432 fix device_type for template serializers
* 11432 DRY
* 11432 DRY
* 11432 make internal var
* 11432 change to model-level validation
* 11432 fix fk accessor
* Clean up validation error messages
---------
Co-authored-by: jeremystretch <jstretch@netboxlabs.com >
2023-04-12 10:25:54 -04:00
jeremystretch
0455654f71
#8272 : Cleanup & add filter for bridge_id
2023-03-20 11:40:45 -04:00
kkthxbye-code
a74ae46f86
Add bridge to InterfaceTemplate
2023-03-07 18:00:24 -05:00
jeremystretch
96a79c2126
Closes #11737 : ChangeLoggedModel should inherit WebhooksMixin
2023-02-19 20:09:51 -05:00
kkthxbye
8e94eb67d2
Add the enabled filed to InterfaceTemplate
2023-02-19 20:09:51 -05:00
Arthur
6eba5d4d96
10300 initial translation support use gettext
2022-11-11 08:47:29 -05:00
jeremystretch
f51415cf2c
Replace unique_together with UniqueConstraints
2022-09-27 15:35:24 -04:00
jeremystretch
1b88b36820
Merge branch 'develop' into feature
2022-08-08 15:39:03 -04:00
Jason Lavoie
c6e25f068d
import/export color field on front- and rear-ports for module-types and device-types
...
Closes : #9906
- Adds `color` field to front and rearport template import forms
- Adds `color` field to `to_yaml` export for front and rearport
templates
2022-08-03 09:22:06 -04:00
jeremystretch
562769fb89
Merge branch 'develop' into feature
2022-08-01 14:42:09 -04:00
jeremystretch
984d15d7fb
Closes #9893 : Move YAML serialization logic for component templates under the individual models
2022-08-01 11:39:07 -04:00
Daniel Sheppard
890efa5400
Fixes #9062 - Add/edit {module} substitution to help text for component template name
2022-07-29 11:55:26 -05:00
jeremystretch
2c43c8d077
Closes #9793 : Add PoE attributes to interface templates
2022-07-28 15:20:25 -04:00
jeremystretch
1726593fb0
Introduce MODULE_TOKEN constant
2022-05-11 10:37:04 -04:00
jeremystretch
fa5cf665ce
Fixes #9128 : Resolve component labels per module bay position when installing modules
2022-04-14 11:13:04 -04:00
jeremystretch
4fae42de51
Fixes #9007 : Fix FieldError exception when instantiating a device type with nested inventory items
2022-03-31 12:07:02 -04:00
jeremystretch
7a54658710
Fixes #8978 : Fix instantiation of front ports when provisioning a module
2022-03-31 09:03:01 -04:00
jeremystretch
b67859832a
Refactor to_objectchange()
2022-01-26 20:25:23 -05:00
jeremystretch
cdae0c2bef
Remove extras_features() decorator
2022-01-19 15:16:10 -05:00
jeremystretch
4c15f4a84f
Initial work on #8118
2021-12-29 15:37:01 -05:00
jeremystretch
eaa1165611
Add position field for module bays
2021-12-20 09:51:55 -05:00
jeremystretch
7777922bef
Add Module model
2021-12-17 16:12:03 -05:00
jeremystretch
7c60e3c0ff
Add Module model
2021-12-17 12:18:37 -05:00
jeremystretch
e529d7fd3b
Add ModuleBay and ModuleBayTemplate models
2021-12-17 09:35:57 -05:00
jeremystretch
d529c1b5b3
Housekeeping: Use RestrictedQuerySet for default manager on base models
2021-11-11 15:04:22 -05:00
jeremystretch
88e382e7a1
Merge v2.11.8 changes
2021-07-06 12:10:29 -04:00
jeremystretch
70585ff32e
Fixes #6695 : Fix exception when importing device type with invalid front port definition
2021-07-05 09:30:52 -04:00
jeremystretch
b3ed545d6a
Closes #3682 : Add color field to front and rear ports
2021-06-09 16:51:51 -04:00
Jeremy Stretch
20f60cd99d
Fix feature assignments for device component templates
2021-03-10 14:03:50 -05:00