openedx-learning 0.18.1__py2.py3-none-any.whl → 0.18.2__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.
- openedx_learning/__init__.py +1 -1
- {openedx_learning-0.18.1.dist-info → openedx_learning-0.18.2.dist-info}/METADATA +14 -4
- {openedx_learning-0.18.1.dist-info → openedx_learning-0.18.2.dist-info}/RECORD +8 -8
- {openedx_learning-0.18.1.dist-info → openedx_learning-0.18.2.dist-info}/WHEEL +1 -1
- openedx_tagging/core/tagging/rest_api/v1/serializers.py +1 -2
- openedx_tagging/core/tagging/rest_api/v1/views.py +8 -2
- {openedx_learning-0.18.1.dist-info → openedx_learning-0.18.2.dist-info}/LICENSE.txt +0 -0
- {openedx_learning-0.18.1.dist-info → openedx_learning-0.18.2.dist-info}/top_level.txt +0 -0
openedx_learning/__init__.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: openedx-learning
|
|
3
|
-
Version: 0.18.
|
|
3
|
+
Version: 0.18.2
|
|
4
4
|
Summary: Open edX Learning Core and Tagging.
|
|
5
5
|
Home-page: https://github.com/openedx/openedx-learning
|
|
6
6
|
Author: David Ormsbee
|
|
@@ -19,11 +19,21 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
19
19
|
Requires-Python: >=3.11
|
|
20
20
|
License-File: LICENSE.txt
|
|
21
21
|
Requires-Dist: attrs
|
|
22
|
-
Requires-Dist:
|
|
22
|
+
Requires-Dist: edx-drf-extensions
|
|
23
23
|
Requires-Dist: Django<5.0
|
|
24
24
|
Requires-Dist: rules<4.0
|
|
25
|
-
Requires-Dist:
|
|
25
|
+
Requires-Dist: celery
|
|
26
26
|
Requires-Dist: djangorestframework<4.0
|
|
27
|
+
Dynamic: author
|
|
28
|
+
Dynamic: author-email
|
|
29
|
+
Dynamic: classifier
|
|
30
|
+
Dynamic: description
|
|
31
|
+
Dynamic: home-page
|
|
32
|
+
Dynamic: keywords
|
|
33
|
+
Dynamic: license
|
|
34
|
+
Dynamic: requires-dist
|
|
35
|
+
Dynamic: requires-python
|
|
36
|
+
Dynamic: summary
|
|
27
37
|
|
|
28
38
|
Open edX Learning Core (and Tagging)
|
|
29
39
|
====================================
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
openedx_learning/__init__.py,sha256=
|
|
1
|
+
openedx_learning/__init__.py,sha256=ocvzmbOu6mnDbotyVVaqxa7N5_X4KLXhFm24TGgt7Ug,69
|
|
2
2
|
openedx_learning/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
openedx_learning/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
openedx_learning/api/authoring.py,sha256=vbRpiQ2wOfN3oR2bbN0-bI2ra0QRtha9tVixKW1ENis,929
|
|
@@ -108,12 +108,12 @@ openedx_tagging/core/tagging/rest_api/urls.py,sha256=egXaRQv1EAgF04ThgVZBQuvLK1L
|
|
|
108
108
|
openedx_tagging/core/tagging/rest_api/utils.py,sha256=XZXixZ44vpNlxiyFplW8Lktyh_m1EfR3Y-tnyvA7acc,3620
|
|
109
109
|
openedx_tagging/core/tagging/rest_api/v1/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
110
110
|
openedx_tagging/core/tagging/rest_api/v1/permissions.py,sha256=7HPE_NuKku_ISnkeE_HsFNXVYt0IbVkJN6M4wqwHGHU,2443
|
|
111
|
-
openedx_tagging/core/tagging/rest_api/v1/serializers.py,sha256=
|
|
111
|
+
openedx_tagging/core/tagging/rest_api/v1/serializers.py,sha256=0HQD_Jrf6-YpocYfzGs74YBYjXe9Yo7cXU0A4VKr5Dw,13876
|
|
112
112
|
openedx_tagging/core/tagging/rest_api/v1/urls.py,sha256=dNUKCtUCx_YzrwlbEbpDfjGVQbb2QdJ1VuJCkladj6E,752
|
|
113
|
-
openedx_tagging/core/tagging/rest_api/v1/views.py,sha256=
|
|
113
|
+
openedx_tagging/core/tagging/rest_api/v1/views.py,sha256=Hf92cy-tE767DE9FgsZcPKiCYrf5ihfETz8qGKBnuiU,36278
|
|
114
114
|
openedx_tagging/core/tagging/rest_api/v1/views_import.py,sha256=kbHUPe5A6WaaJ3J1lFIcYCt876ecLNQfd19m7YYub6c,1470
|
|
115
|
-
openedx_learning-0.18.
|
|
116
|
-
openedx_learning-0.18.
|
|
117
|
-
openedx_learning-0.18.
|
|
118
|
-
openedx_learning-0.18.
|
|
119
|
-
openedx_learning-0.18.
|
|
115
|
+
openedx_learning-0.18.2.dist-info/LICENSE.txt,sha256=QTW2QN7q3XszgUAXm9Dzgtu5LXYKbR1SGnqMa7ufEuY,35139
|
|
116
|
+
openedx_learning-0.18.2.dist-info/METADATA,sha256=Bcxh5QoGBtnf43eCBqqe8i3JryQAALdsaLT0dw82XnY,8975
|
|
117
|
+
openedx_learning-0.18.2.dist-info/WHEEL,sha256=9Hm2OB-j1QcCUq9Jguht7ayGIIZBRTdOXD1qg9cCgPM,109
|
|
118
|
+
openedx_learning-0.18.2.dist-info/top_level.txt,sha256=IYFbr5mgiEHd-LOtZmXj3q3a0bkGK1M9LY7GXgnfi4M,33
|
|
119
|
+
openedx_learning-0.18.2.dist-info/RECORD,,
|
|
@@ -157,8 +157,7 @@ class ObjectTagSerializer(ObjectTagMinimalSerializer):
|
|
|
157
157
|
class Meta:
|
|
158
158
|
model = ObjectTag
|
|
159
159
|
fields = ObjectTagMinimalSerializer.Meta.fields + [
|
|
160
|
-
|
|
161
|
-
"name",
|
|
160
|
+
"export_id",
|
|
162
161
|
"taxonomy_id",
|
|
163
162
|
# If the Tag or Taxonomy has been deleted, this ObjectTag shouldn't be shown to users.
|
|
164
163
|
"is_deleted",
|
|
@@ -782,8 +782,8 @@ class TaxonomyTagsView(ListAPIView, RetrieveUpdateDestroyAPIView):
|
|
|
782
782
|
The current taxonomy is cached in the view.
|
|
783
783
|
"""
|
|
784
784
|
if not self._taxonomy:
|
|
785
|
-
taxonomy_id =
|
|
786
|
-
taxonomy = get_taxonomy(taxonomy_id)
|
|
785
|
+
taxonomy_id = self.kwargs.get("pk")
|
|
786
|
+
taxonomy = get_taxonomy(int(taxonomy_id)) if taxonomy_id else None
|
|
787
787
|
if not taxonomy:
|
|
788
788
|
raise Http404("Taxonomy not found")
|
|
789
789
|
self.check_object_permissions(self.request, taxonomy)
|
|
@@ -799,6 +799,9 @@ class TaxonomyTagsView(ListAPIView, RetrieveUpdateDestroyAPIView):
|
|
|
799
799
|
context['request'] = self.request
|
|
800
800
|
serializer = self.serializer_class(self, context=context)
|
|
801
801
|
|
|
802
|
+
if getattr(self, 'swagger_fake_view', False):
|
|
803
|
+
# queryset just for schema generation metadata
|
|
804
|
+
return context
|
|
802
805
|
# Instead of checking permissions for each TagData instance, we just check them once for the whole taxonomy
|
|
803
806
|
# (since that's currently how our rules work). This might change if Tag-specific permissions are needed.
|
|
804
807
|
taxonomy = self.get_taxonomy()
|
|
@@ -814,6 +817,9 @@ class TaxonomyTagsView(ListAPIView, RetrieveUpdateDestroyAPIView):
|
|
|
814
817
|
"""
|
|
815
818
|
Builds and returns the queryset to be paginated.
|
|
816
819
|
"""
|
|
820
|
+
if getattr(self, 'swagger_fake_view', False):
|
|
821
|
+
# queryset just for schema generation metadata
|
|
822
|
+
return Taxonomy.objects.none() # type: ignore[return-value]
|
|
817
823
|
taxonomy = self.get_taxonomy()
|
|
818
824
|
parent_tag_value = self.request.query_params.get("parent_tag", None)
|
|
819
825
|
include_counts = "include_counts" in self.request.query_params
|
|
File without changes
|
|
File without changes
|