django-cte 2.0.1.dev20251006182758__tar.gz → 2.0.1.dev20251006193645__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: django-cte
3
- Version: 2.0.1.dev20251006182758
3
+ Version: 2.0.1.dev20251006193645
4
4
  Summary: Common Table Expressions (CTE) for Django
5
5
  Author-email: Daniel Miller <millerdev@gmail.com>
6
6
  Requires-Python: >= 3.9
@@ -1,4 +1,4 @@
1
1
  from .cte import CTE, with_cte, CTEManager, CTEQuerySet, With # noqa
2
2
 
3
- __version__ = "2.0.1.dev20251006182758"
3
+ __version__ = "2.0.1.dev20251006193645"
4
4
  __all__ = ["CTE", "with_cte"]
@@ -139,7 +139,8 @@ class CTE:
139
139
  query.annotation_select_mask = cte_query.annotation_select_mask
140
140
  for alias in getattr(cte_query, "selected", None) or ():
141
141
  if alias not in cte_query.annotations:
142
- col = Ref(alias, cte_query.resolve_ref(alias))
142
+ output_field = cte_query.resolve_ref(alias).output_field
143
+ col = CTEColumnRef(alias, self.name, output_field)
143
144
  query.add_annotation(col, alias)
144
145
 
145
146
  qs.query = query