Skip to content

Commit

Permalink
Remove redundant .only(...)
Browse files Browse the repository at this point in the history
  • Loading branch information
millerdev committed Jan 3, 2025
1 parent 45c4f5d commit 0e7f074
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_cte.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ def test_union_query_with_cte(self):
.only("region", "amount")
)
orders_cte = With(orders, name="orders_cte")
orders_cte_queryset = orders_cte.queryset().only("region", "amount")
orders_cte_queryset = orders_cte.queryset()

earth_orders = orders_cte_queryset.filter(region="earth")
mars_orders = orders_cte_queryset.filter(region="mars")
Expand Down

0 comments on commit 0e7f074

Please sign in to comment.