netbox/netbox
Jeremy Stretch 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
..
account Revert "Closes #13647: Squash all migrations prior to v3.7 (#14853)" 2024-01-22 13:15:43 -05:00
circuits Closes #15131: Dynamic queryset annotations for REST API endpoints (#15152) 2024-02-15 14:49:27 -05:00
core Closes #15131: Dynamic queryset annotations for REST API endpoints (#15152) 2024-02-15 14:49:27 -05:00
dcim Closes #15131: Dynamic queryset annotations for REST API endpoints (#15152) 2024-02-15 14:49:27 -05:00
extras Closes #15131: Dynamic queryset annotations for REST API endpoints (#15152) 2024-02-15 14:49:27 -05:00
ipam Closes #15131: Dynamic queryset annotations for REST API endpoints (#15152) 2024-02-15 14:49:27 -05:00
media Tweak gitignore to include devicetype-images directory 2020-02-20 13:42:23 -05:00
netbox Closes #15131: Dynamic queryset annotations for REST API endpoints (#15152) 2024-02-15 14:49:27 -05:00
project-static Closes #13283: Add context to dropdown options (#15104) 2024-02-13 16:31:17 -05:00
reports
scripts
templates Closes #14917: Replace slim-select with tom-select (#15080) 2024-02-08 15:07:04 -05:00
tenancy Closes #15131: Dynamic queryset annotations for REST API endpoints (#15152) 2024-02-15 14:49:27 -05:00
translations Release v3.7.2 2024-02-05 13:56:52 -05:00
users Closes #15087: Support for specifying a subset of API serializer fields (#15122) 2024-02-14 09:28:37 -05:00
utilities Closes #15131: Dynamic queryset annotations for REST API endpoints (#15152) 2024-02-15 14:49:27 -05:00
virtualization Closes #15131: Dynamic queryset annotations for REST API endpoints (#15152) 2024-02-15 14:49:27 -05:00
vpn Closes #15131: Dynamic queryset annotations for REST API endpoints (#15152) 2024-02-15 14:49:27 -05:00
wireless Closes #15087: Support for specifying a subset of API serializer fields (#15122) 2024-02-14 09:28:37 -05:00
generate_secret_key.py Change Interpreter in shebang to python3 2023-02-27 14:09:10 -05:00
manage.py