Skip to content

Commit b6a81e0

Browse files
authored
Merge pull request #3442 from bjester/update-django-cte
Update django-cte to resolve query issue preventing access to API key
2 parents 44efd5d + 487c052 commit b6a81e0

6 files changed

Lines changed: 41 additions & 82 deletions

File tree

contentcuration/contentcuration/apps.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,3 @@ def ready(self):
1414
if settings.AWS_AUTO_CREATE_BUCKET and not is_gcs_backend():
1515
from contentcuration.utils.minio_utils import ensure_storage_bucket_public
1616
ensure_storage_bucket_public()
17-
18-
self._patch_django_cte_qjoin()
19-
20-
def _patch_django_cte_qjoin(self):
21-
"""
22-
TODO Remove after the following prs/issues are resolved:
23-
https://github.com/learningequality/studio/pull/3442
24-
https://github.com/dimagi/django-cte/pull/60
25-
26-
@see fix: https://github.com/dimagi/django-cte/pull/50/files
27-
"""
28-
from django_cte.join import QJoin
29-
30-
class join_field:
31-
class related_model:
32-
class _meta:
33-
local_concrete_fields = ()
34-
35-
QJoin.join_field = join_field

contentcuration/contentcuration/management/commands/runserver.py

Lines changed: 0 additions & 28 deletions
This file was deleted.

requirements-dev.txt

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile
2+
# This file is autogenerated by pip-compile with python 3.6
33
# To update, run:
44
#
55
# pip-compile requirements-dev.in
@@ -67,14 +67,20 @@ coverage[toml]==6.2
6767
# -r requirements-dev.in
6868
# codecov
6969
# pytest-cov
70-
git+https://github.com/someshchaturvedi/customizable-django-profiler.git#customizable-django-profiler
70+
customizable-django-profiler @ git+https://github.com/someshchaturvedi/customizable-django-profiler.git
7171
# via -r requirements-dev.in
7272
dataclasses==0.8
7373
# via werkzeug
7474
dill==0.3.4
7575
# via pylint
7676
distlib==0.3.4
7777
# via virtualenv
78+
django==3.2.13
79+
# via
80+
# -c requirements.txt
81+
# django-debug-toolbar
82+
# djangorestframework
83+
# drf-yasg
7884
django-concurrent-test-helper==0.7.0
7985
# via -r requirements-dev.in
8086
django-debug-panel==0.8.3
@@ -83,12 +89,6 @@ django-debug-toolbar==1.9.1
8389
# via
8490
# -r requirements-dev.in
8591
# django-debug-panel
86-
django==3.2.13
87-
# via
88-
# -c requirements.txt
89-
# django-debug-toolbar
90-
# djangorestframework
91-
# drf-yasg
9292
djangorestframework==3.12.4
9393
# via
9494
# -c requirements.txt
@@ -105,15 +105,15 @@ filelock==3.4.1
105105
# via virtualenv
106106
flake8==3.4.1
107107
# via -r requirements-dev.in
108-
flask-basicauth==0.2.0
109-
# via locust
110-
flask-cors==3.0.10
111-
# via locust
112108
flask==2.0.3
113109
# via
114110
# flask-basicauth
115111
# flask-cors
116112
# locust
113+
flask-basicauth==0.2.0
114+
# via locust
115+
flask-cors==3.0.10
116+
# via locust
117117
flower==0.9.4
118118
# via -r requirements-dev.in
119119
fonttools==4.27.1
@@ -237,10 +237,10 @@ pyflakes==1.5.0
237237
# via
238238
# autoflake
239239
# flake8
240-
pyinstrument-cext==0.2.4
241-
# via pyinstrument
242240
pyinstrument==3.4.2
243241
# via -r requirements-dev.in
242+
pyinstrument-cext==0.2.4
243+
# via pyinstrument
244244
pylint==2.13.9
245245
# via -r requirements-dev.in
246246
pyls-isort==0.2.2
@@ -253,6 +253,15 @@ pyparsing==2.4.7
253253
# via
254254
# -c requirements.txt
255255
# packaging
256+
pytest==6.2.5
257+
# via
258+
# -r requirements-dev.in
259+
# pytest-cov
260+
# pytest-django
261+
# pytest-logging
262+
# pytest-pythonpath
263+
# pytest-timeout
264+
# pytest-watch
256265
pytest-cov==3.0.0
257266
# via -r requirements-dev.in
258267
pytest-django==4.5.2
@@ -265,15 +274,6 @@ pytest-timeout==2.1.0
265274
# via -r requirements-dev.in
266275
pytest-watch==4.2.0
267276
# via -r requirements-dev.in
268-
pytest==6.2.5
269-
# via
270-
# -r requirements-dev.in
271-
# pytest-cov
272-
# pytest-django
273-
# pytest-logging
274-
# pytest-pythonpath
275-
# pytest-timeout
276-
# pytest-watch
277277
python-dateutil==2.8.1
278278
# via
279279
# -c requirements.txt
@@ -308,10 +308,10 @@ rope==1.1.1
308308
# via -r requirements-dev.in
309309
roundrobin==0.0.2
310310
# via locust
311-
ruamel.yaml.clib==0.2.6
312-
# via ruamel.yaml
313311
ruamel.yaml==0.17.21
314312
# via drf-yasg
313+
ruamel.yaml.clib==0.2.6
314+
# via ruamel.yaml
315315
service-factory==0.1.6
316316
# via -r requirements-dev.in
317317
six==1.16.0
@@ -350,6 +350,7 @@ typed-ast==1.5.4
350350
# via astroid
351351
typing-extensions==4.1.1
352352
# via
353+
# -c requirements.txt
353354
# asgiref
354355
# astroid
355356
# locust

requirements-docs.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile
2+
# This file is autogenerated by pip-compile with python 3.6
33
# To update, run:
44
#
55
# pip-compile requirements-docs.in
@@ -65,17 +65,17 @@ six==1.16.0
6565
# sphinx
6666
snowballstemmer==2.2.0
6767
# via sphinx
68+
sphinx==1.6.4
69+
# via
70+
# -r requirements-docs.in
71+
# sphinx-intl
72+
# sphinx-rtd-theme
6873
sphinx-autobuild==0.7.1
6974
# via -r requirements-docs.in
7075
sphinx-intl==2.0.1
7176
# via -r requirements-docs.in
7277
sphinx-rtd-theme==1.0.0
7378
# via -r requirements-docs.in
74-
sphinx==1.6.4
75-
# via
76-
# -r requirements-docs.in
77-
# sphinx-intl
78-
# sphinx-rtd-theme
7979
sphinxcontrib-serializinghtml==1.1.5
8080
# via sphinxcontrib-websupport
8181
sphinxcontrib-websupport==1.2.4

requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
attrs==19.3.0
2-
django-cte==1.1.5
2+
django-cte==1.2.1
33
django-mptt==0.11.0
44
django-filter==2.4.0
55
djangorestframework==3.12.4

requirements.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile
2+
# This file is autogenerated by pip-compile with python 3.6
33
# To update, run:
44
#
55
# pip-compile requirements.in
@@ -54,7 +54,7 @@ django==3.2.13
5454
# jsonfield
5555
django-bulk-update==2.2.0
5656
# via -r requirements.in
57-
django-cte==1.1.5
57+
django-cte==1.2.1
5858
# via -r requirements.in
5959
django-db-readonly==0.7.0
6060
# via -r requirements.in
@@ -151,7 +151,10 @@ httplib2==0.19.1
151151
idna==2.10
152152
# via requests
153153
importlib-metadata==1.7.0
154-
# via -r requirements.in
154+
# via
155+
# -r requirements.in
156+
# jsonschema
157+
# kombu
155158
jmespath==0.10.0
156159
# via
157160
# boto3
@@ -265,6 +268,8 @@ six==1.16.0
265268
# python-utils
266269
sqlparse==0.4.1
267270
# via django
271+
typing-extensions==4.1.1
272+
# via asgiref
268273
uritemplate==3.0.1
269274
# via google-api-python-client
270275
urllib3==1.26.5

0 commit comments

Comments
 (0)