richie 3.1.3.dev37__py2.py3-none-any.whl → 3.1.3.dev38__py2.py3-none-any.whl
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.
Potentially problematic release.
This version of richie might be problematic. Click here for more details.
- richie/apps/courses/api.py +9 -0
- {richie-3.1.3.dev37.dist-info → richie-3.1.3.dev38.dist-info}/METADATA +1 -1
- {richie-3.1.3.dev37.dist-info → richie-3.1.3.dev38.dist-info}/RECORD +7 -7
- {richie-3.1.3.dev37.dist-info → richie-3.1.3.dev38.dist-info}/WHEEL +0 -0
- {richie-3.1.3.dev37.dist-info → richie-3.1.3.dev38.dist-info}/licenses/LICENSE +0 -0
- {richie-3.1.3.dev37.dist-info → richie-3.1.3.dev38.dist-info}/top_level.txt +0 -0
- {richie-3.1.3.dev37.dist-info → richie-3.1.3.dev38.dist-info}/zip-safe +0 -0
richie/apps/courses/api.py
CHANGED
|
@@ -3,6 +3,7 @@ API endpoints for the courses app.
|
|
|
3
3
|
"""
|
|
4
4
|
|
|
5
5
|
from django.conf import settings
|
|
6
|
+
from django.core.cache import caches
|
|
6
7
|
from django.db.models import Q
|
|
7
8
|
|
|
8
9
|
from cms import signals as cms_signals
|
|
@@ -147,6 +148,10 @@ def sync_course_run(data):
|
|
|
147
148
|
instance=course_run.direct_course.extended_object,
|
|
148
149
|
language=None,
|
|
149
150
|
)
|
|
151
|
+
# We also need to clear the cache of the public course page
|
|
152
|
+
# and the search index (catalog)
|
|
153
|
+
course_run.direct_course.extended_object.clear_cache()
|
|
154
|
+
caches["search"].clear()
|
|
150
155
|
else:
|
|
151
156
|
course_run.refresh_from_db()
|
|
152
157
|
course_run.mark_course_dirty()
|
|
@@ -196,6 +201,10 @@ def sync_course_run(data):
|
|
|
196
201
|
cms_signals.post_publish.send(
|
|
197
202
|
sender=Page, instance=course.extended_object, language=None
|
|
198
203
|
)
|
|
204
|
+
# We also need to clear the cache of the public course page
|
|
205
|
+
# and the search index (catalog)
|
|
206
|
+
course.extended_object.clear_cache()
|
|
207
|
+
caches["search"].clear()
|
|
199
208
|
else:
|
|
200
209
|
# Save the draft course run marking the course page dirty
|
|
201
210
|
draft_course_run.save()
|
|
@@ -945,7 +945,7 @@ richie/apps/core/views/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
|
|
|
945
945
|
richie/apps/core/views/error.py,sha256=4jzdLTUkPgMmZp3fDluUzpPE3PmftjZQpKwWwYAdugs,1762
|
|
946
946
|
richie/apps/courses/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
947
947
|
richie/apps/courses/admin.py,sha256=4RbF_eS_rW-khQs9Xg-Huy6I0e6iiyZAiacBnLOgNpc,13346
|
|
948
|
-
richie/apps/courses/api.py,sha256
|
|
948
|
+
richie/apps/courses/api.py,sha256=iGcA2LACD1zAIwct1AhmrgzlX81cUKaGZQEmKqmOy3s,10797
|
|
949
949
|
richie/apps/courses/cms_menus.py,sha256=MRga65UCMxJbOBIacBjqyXj63W7KczmrpOyMLNykQqc,2855
|
|
950
950
|
richie/apps/courses/cms_plugins.py,sha256=PrnP-HFNk960MI7bMKlp6pOajGsiTMbwUR_r0pD_M3o,7310
|
|
951
951
|
richie/apps/courses/cms_toolbars.py,sha256=x5V-BVboyD9AiDa32nHslrXtsQFNrNr3mb2t7UhUkVw,6693
|
|
@@ -2487,9 +2487,9 @@ richie/static/richie/js/build/99870.fa30634a2ea6ab585494.index.js,sha256=cDPEuTP
|
|
|
2487
2487
|
richie/static/richie/js/build/99895.fa30634a2ea6ab585494.index.js,sha256=hETqPJcxvRFIdWKoD8bmPAlQ-HGSpvWmd6mDU8H4feM,2570
|
|
2488
2488
|
richie/static/richie/js/build/99953.fa30634a2ea6ab585494.index.js,sha256=OWoLPJnHrmvF3HBQPgXooAGo5E0yJpJ7QTFHFghJpI8,135
|
|
2489
2489
|
richie/static/richie/js/build/index.js,sha256=Ub5sbylVR0BmZ2HBUvd5M_Bf3o3xETquAK8OtTt2uJA,1332835
|
|
2490
|
-
richie-3.1.3.
|
|
2491
|
-
richie-3.1.3.
|
|
2492
|
-
richie-3.1.3.
|
|
2493
|
-
richie-3.1.3.
|
|
2494
|
-
richie-3.1.3.
|
|
2495
|
-
richie-3.1.3.
|
|
2490
|
+
richie-3.1.3.dev38.dist-info/licenses/LICENSE,sha256=5LKjFIE1kpKzBfR2iwq_RGHhHM5XawdlfZrcHTsCLpA,1079
|
|
2491
|
+
richie-3.1.3.dev38.dist-info/METADATA,sha256=ORDI6-dSkauII-Rd0A3zWqsRQOMXiJG0AHseR6aaZNg,7080
|
|
2492
|
+
richie-3.1.3.dev38.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
|
|
2493
|
+
richie-3.1.3.dev38.dist-info/top_level.txt,sha256=WJvFAAHtUQ5T5MOuG6jRynDJG9kVfl4jtuf1qxIXND8,16
|
|
2494
|
+
richie-3.1.3.dev38.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
2495
|
+
richie-3.1.3.dev38.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|