django-cte 2.0.0.dev20251006115930__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.
- {django_cte-2.0.0.dev20251006115930 → django_cte-2.0.1.dev20251006193645}/PKG-INFO +2 -3
- {django_cte-2.0.0.dev20251006115930 → django_cte-2.0.1.dev20251006193645}/django_cte/__init__.py +1 -1
- {django_cte-2.0.0.dev20251006115930 → django_cte-2.0.1.dev20251006193645}/django_cte/cte.py +3 -3
- {django_cte-2.0.0.dev20251006115930 → django_cte-2.0.1.dev20251006193645}/pyproject.toml +2 -3
- {django_cte-2.0.0.dev20251006115930 → django_cte-2.0.1.dev20251006193645}/LICENSE +0 -0
- {django_cte-2.0.0.dev20251006115930 → django_cte-2.0.1.dev20251006193645}/README.md +0 -0
- {django_cte-2.0.0.dev20251006115930 → django_cte-2.0.1.dev20251006193645}/django_cte/_deprecated.py +0 -0
- {django_cte-2.0.0.dev20251006115930 → django_cte-2.0.1.dev20251006193645}/django_cte/jitmixin.py +0 -0
- {django_cte-2.0.0.dev20251006115930 → django_cte-2.0.1.dev20251006193645}/django_cte/join.py +0 -0
- {django_cte-2.0.0.dev20251006115930 → django_cte-2.0.1.dev20251006193645}/django_cte/meta.py +0 -0
- {django_cte-2.0.0.dev20251006115930 → django_cte-2.0.1.dev20251006193645}/django_cte/query.py +0 -0
- {django_cte-2.0.0.dev20251006115930 → django_cte-2.0.1.dev20251006193645}/django_cte/raw.py +0 -0
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: django-cte
|
|
3
|
-
Version: 2.0.
|
|
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
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
|
+
License-Expression: BSD-3-Clause
|
|
8
9
|
Classifier: Development Status :: 5 - Production/Stable
|
|
9
10
|
Classifier: Environment :: Web Environment
|
|
10
|
-
Classifier: Framework :: Django
|
|
11
11
|
Classifier: Intended Audience :: Developers
|
|
12
|
-
Classifier: License :: OSI Approved :: BSD License
|
|
13
12
|
Classifier: Operating System :: OS Independent
|
|
14
13
|
Classifier: Programming Language :: Python
|
|
15
14
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -58,7 +58,7 @@ class CTE:
|
|
|
58
58
|
self.col = CTEColumns(self)
|
|
59
59
|
|
|
60
60
|
def __repr__(self):
|
|
61
|
-
return "<
|
|
61
|
+
return f"<{type(self).__name__} {self.name}>"
|
|
62
62
|
|
|
63
63
|
@classmethod
|
|
64
64
|
def recursive(cls, make_cte_queryset, name="cte", materialized=False):
|
|
@@ -80,7 +80,6 @@ class CTE:
|
|
|
80
80
|
"""Join this CTE to the given model or queryset
|
|
81
81
|
|
|
82
82
|
This CTE will be referenced by the returned queryset, but the
|
|
83
|
-
|
|
84
83
|
corresponding `WITH ...` statement will not be prepended to the
|
|
85
84
|
queryset's SQL output; use `with_cte(cte, select=cte.join(...))`
|
|
86
85
|
to achieve that outcome.
|
|
@@ -140,7 +139,8 @@ class CTE:
|
|
|
140
139
|
query.annotation_select_mask = cte_query.annotation_select_mask
|
|
141
140
|
for alias in getattr(cte_query, "selected", None) or ():
|
|
142
141
|
if alias not in cte_query.annotations:
|
|
143
|
-
|
|
142
|
+
output_field = cte_query.resolve_ref(alias).output_field
|
|
143
|
+
col = CTEColumnRef(alias, self.name, output_field)
|
|
144
144
|
query.add_annotation(col, alias)
|
|
145
145
|
|
|
146
146
|
qs.query = query
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
name = "django-cte"
|
|
3
3
|
description = "Common Table Expressions (CTE) for Django"
|
|
4
4
|
authors = [{name = "Daniel Miller", email = "millerdev@gmail.com"}]
|
|
5
|
-
license =
|
|
5
|
+
license = "BSD-3-Clause"
|
|
6
|
+
license-files = ["LICENSE"]
|
|
6
7
|
readme = {file = "README.md", content-type = "text/markdown"}
|
|
7
8
|
dynamic = ["version"]
|
|
8
9
|
requires-python = ">= 3.9"
|
|
@@ -11,9 +12,7 @@ requires-python = ">= 3.9"
|
|
|
11
12
|
classifiers = [
|
|
12
13
|
"Development Status :: 5 - Production/Stable",
|
|
13
14
|
'Environment :: Web Environment',
|
|
14
|
-
'Framework :: Django',
|
|
15
15
|
'Intended Audience :: Developers',
|
|
16
|
-
'License :: OSI Approved :: BSD License',
|
|
17
16
|
'Operating System :: OS Independent',
|
|
18
17
|
'Programming Language :: Python',
|
|
19
18
|
'Programming Language :: Python :: 3',
|
|
File without changes
|
|
File without changes
|
{django_cte-2.0.0.dev20251006115930 → django_cte-2.0.1.dev20251006193645}/django_cte/_deprecated.py
RENAMED
|
File without changes
|
{django_cte-2.0.0.dev20251006115930 → django_cte-2.0.1.dev20251006193645}/django_cte/jitmixin.py
RENAMED
|
File without changes
|
{django_cte-2.0.0.dev20251006115930 → django_cte-2.0.1.dev20251006193645}/django_cte/join.py
RENAMED
|
File without changes
|
{django_cte-2.0.0.dev20251006115930 → django_cte-2.0.1.dev20251006193645}/django_cte/meta.py
RENAMED
|
File without changes
|
{django_cte-2.0.0.dev20251006115930 → django_cte-2.0.1.dev20251006193645}/django_cte/query.py
RENAMED
|
File without changes
|
|
File without changes
|