7abb2b2ab5
Closes #15131 : Dynamic queryset annotations for REST API endpoints ( #15152 )
...
* Introduce RelatedObjectCountField
* Introduce get_annotations_for_serializer() and enable dynamic annotations
* Add RelatedObjectCountFields to serializers; remove static annotations from querysets
* Remove annotations cleanup logic from BriefModeMixin
* Annotate type for RelatedObjectCountField
* Remove redundant field on TagSerializer
* Add missing reverse relationship for power feeds to rack
* Refactor RelatedObjectCountField to take a single relationship name
2024-02-15 14:49:27 -05:00
fe3f21105c
Fixes #14448 : Fix exception when creating a power feed with rack and panel in different sites
2023-12-06 15:28:47 -05:00
75b71890a4
Misc i18n cleanup
2023-09-11 15:59:50 -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
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
36f95f7842
Adds tenant on power feed ( #13300 )
...
* adds tenant on power feed
* cleanup
* adds power feed count on tenant object view
* Misc cleanup; add filterset tests
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com >
2023-07-31 08:20:48 -04: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
f51415cf2c
Replace unique_together with UniqueConstraints
2022-09-27 15:35:24 -04: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
8cd5a24409
#9414 : Clean up clone_fields on all models
2022-08-11 09:58:37 -04:00
af14bfdd84
Rename LinkTermination to CabledObjectModel
2022-07-06 15:56:10 -04:00
c330282919
Fix syntax error
2022-06-23 14:56:24 -04:00
db807ab4a6
Closes #7702 : Add power feed defaults to user configurations
2022-06-23 14:16:09 -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
3a3ed8bf64
Merge branch 'feature' into 3979-wireless
2021-10-21 13:19:52 -04:00
f193f0d3f9
Add contact assignments to models
2021-10-18 15:09:57 -04:00
ac2cd552b9
Rename cable_peer fields to link_peer
2021-10-13 14:04:53 -04:00
f3fe3f9a18
Closes #6708 : Add image attachment support for circuits, power panels
2021-10-01 12:50:51 -04:00
7e18b0dd3a
Remove csv_headers model attributes
2021-06-09 15:52:49 -04:00
3ec6194a47
Remove obsolete to_csv() methods
2021-06-09 15:08:49 -04:00
b6660c72e1
Add tags as a feature query
2021-05-21 16:54:33 -04:00
0bce1da4e3
Clean up stray references to old RackGroup model
2021-04-11 13:43:06 -04:00
fc5bb966f0
Declare TaggableManager on PrimaryModel base class
2021-03-10 14:32:50 -05:00
8e1fe6339e
Rename parent attribute on CableTerminations to parent_object
2021-03-05 13:06:21 -05:00
fdb3e3f9a4
Closes #5895 : Rename RackGroup to Location
2021-03-03 13:30:33 -05:00
8dd7123923
Closes #3648 : Mark cable termination models as connected without attaching a cable
2021-03-01 21:34:42 -05:00
bec7ea7072
Standardize model types based on function
2021-02-24 21:01:16 -05:00
4a8a1ce45c
Check for extraneous custom field data on clean()
2020-11-12 12:18:31 -05:00
c9c8d337a0
Closes #5011 : Standardized name field lengths across all models
2020-10-15 15:37:34 -04:00
df73737128
Remove legacy connection_status fields
2020-10-05 10:47:41 -04:00
079c42291c
Remove legacy connected endpoint fields
2020-10-05 09:56:46 -04:00
8abc05544c
CircuitTermination and PowerFeed are path endpoints
2020-10-01 13:05:00 -04:00
1b55285167
Relocate CSS classes for ChoiceFields from model to ChoiceSet
2020-09-24 16:35:53 -04:00
0030fe1779
Fixes #5146 : Add custom fields support for cables, power panels, rack reservations, and virtual chassis
2020-09-17 14:22:14 -04:00
2276603ac3
Drop CustomFieldValue
2020-08-21 16:21:11 -04:00
e1cf27a3ac
Refactor DCIM models into separate submodules
2020-08-19 16:37:23 -04:00