Skip to content

Comments

Dev tooling update/2026 02#777

Merged
shundread merged 2 commits intomasterfrom
dev-tooling-update/2026-02
Feb 20, 2026
Merged

Dev tooling update/2026 02#777
shundread merged 2 commits intomasterfrom
dev-tooling-update/2026-02

Conversation

@shundread
Copy link
Contributor

Test, for example, with

./manage.py suggest_queryset_optimizations traffic_control.admin.traffic_sign.TrafficSignRealAdmin
./manage.py suggest_queryset_optimizations traffic_control.admin.traffic_sign.TrafficSignPlanAdmin
./manage.py suggest_queryset_optimizations traffic_control.admin.responsible_entity.ResponsibleEntityAdmin
./manage.py suggest_queryset_optimizations traffic_control.admin.mount.MountPlanAdmin

Also contains pytest tests

@shundread shundread force-pushed the dev-tooling-update/2026-02 branch from 1d7896e to 74d640b Compare February 18, 2026 09:56
Copy link
Contributor

@jforsman jforsman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just check setdefault use, looks good otherwise.

@azure-pipelines
Copy link

CITYINFRA-API branch is deployed to platta: https://cityinfra-pr777.dev.hel.ninja 🚀🚀🚀

1 similar comment
@azure-pipelines
Copy link

CITYINFRA-API branch is deployed to platta: https://cityinfra-pr777.dev.hel.ninja 🚀🚀🚀

@shundread shundread force-pushed the dev-tooling-update/2026-02 branch from e32c08e to 158e919 Compare February 18, 2026 12:24
@azure-pipelines
Copy link

CITYINFRA-API branch is deployed to platta: https://cityinfra-pr777.dev.hel.ninja 🚀🚀🚀

1 similar comment
@azure-pipelines
Copy link

CITYINFRA-API branch is deployed to platta: https://cityinfra-pr777.dev.hel.ninja 🚀🚀🚀

@shundread shundread force-pushed the dev-tooling-update/2026-02 branch from bafe7b7 to 9e4902a Compare February 18, 2026 15:20
@azure-pipelines
Copy link

CITYINFRA-API branch is deployed to platta: https://cityinfra-pr777.dev.hel.ninja 🚀🚀🚀

1 similar comment
@azure-pipelines
Copy link

CITYINFRA-API branch is deployed to platta: https://cityinfra-pr777.dev.hel.ninja 🚀🚀🚀

@shundread shundread force-pushed the dev-tooling-update/2026-02 branch from 21f16c7 to 0547d99 Compare February 19, 2026 10:53
@azure-pipelines
Copy link

CITYINFRA-API branch is deployed to platta: https://cityinfra-pr777.dev.hel.ninja 🚀🚀🚀

…min classes

The command examines fields, fieldsets, list_display and readonly_fields to determine what
needs to be shown and introspects the relevant admin class and the model, along with the
relevant related models to identify relations that can be added to select_related and
prefetch_related calls for detail and list views.

Model relations and relation chains are found automatically. For callable fields in
admin classes and model classes, there is the possibility to decorate those with the
@requires_fields or @requires_annotation decorators to enable the command to automatically
extract the required relations for prefetch / select and annotation calls from those.

Refs: LIIK-865
…izations, generate get_queryset functions

Refs: LIIK-865
@shundread shundread force-pushed the dev-tooling-update/2026-02 branch from 0547d99 to cb6761e Compare February 19, 2026 14:05
@azure-pipelines
Copy link

CITYINFRA-API branch is deployed to platta: https://cityinfra-pr777.dev.hel.ninja 🚀🚀🚀

@sonarqubecloud
Copy link

@shundread shundread merged commit 6b82264 into master Feb 20, 2026
27 checks passed
@shundread shundread deleted the dev-tooling-update/2026-02 branch February 20, 2026 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants