netbox/netbox/circuits/api
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
..
__init__.py Initial push to public repo 2016-03-01 11:23:03 -05:00
nested_serializers.py Closes #15131: Dynamic queryset annotations for REST API endpoints (#15152) 2024-02-15 14:49:27 -05:00
serializers.py Closes #15131: Dynamic queryset annotations for REST API endpoints (#15152) 2024-02-15 14:49:27 -05:00
urls.py Closes: #9047 - Add Provider Accounts (#12057) 2023-03-29 08:27:11 -04:00
views.py Closes #15131: Dynamic queryset annotations for REST API endpoints (#15152) 2024-02-15 14:49:27 -05:00