openedx-learning 0.13.0__py2.py3-none-any.whl → 0.13.1__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.
@@ -1,4 +1,4 @@
1
1
  """
2
2
  Open edX Learning ("Learning Core").
3
3
  """
4
- __version__ = "0.13.0"
4
+ __version__ = "0.13.1"
@@ -2,6 +2,7 @@
2
2
  Django Admin pages for Collection models.
3
3
  """
4
4
  from django.contrib import admin
5
+ from django.utils.translation import gettext_lazy as _
5
6
 
6
7
  from .models import Collection
7
8
 
@@ -15,7 +16,21 @@ class CollectionAdmin(admin.ModelAdmin):
15
16
  readonly_fields = ["key", "learning_package"]
16
17
  list_filter = ["enabled"]
17
18
  list_display = ["key", "title", "enabled", "modified"]
18
- list_editable = ["enabled"]
19
+ fieldsets = [
20
+ (
21
+ "",
22
+ {
23
+ "fields": ["key", "learning_package"],
24
+ }
25
+ ),
26
+ (
27
+ _("Edit only in Studio"),
28
+ {
29
+ "fields": ["title", "enabled", "description", "created_by"],
30
+ "description": _("⚠ Changes made here should be done in Studio Django Admin, not the LMS."),
31
+ }
32
+ ),
33
+ ]
19
34
 
20
35
  def has_add_permission(self, request, *args, **kwargs):
21
36
  """
@@ -0,0 +1,18 @@
1
+ # Generated by Django 4.2.15 on 2024-09-24 07:31
2
+
3
+ from django.db import migrations, models
4
+
5
+
6
+ class Migration(migrations.Migration):
7
+
8
+ dependencies = [
9
+ ('oel_collections', '0004_collection_key'),
10
+ ]
11
+
12
+ operations = [
13
+ migrations.AlterField(
14
+ model_name='collection',
15
+ name='enabled',
16
+ field=models.BooleanField(default=True, help_text='Disabled collections are "soft deleted", and should be re-enabled before use, or be deleted.'),
17
+ ),
18
+ ]
@@ -133,12 +133,10 @@ class Collection(models.Model):
133
133
  }
134
134
  )
135
135
 
136
- # We don't have api functions to handle the enabled field. This is a placeholder for future use and
137
- # a way to "soft delete" collections.
138
136
  enabled = models.BooleanField(
139
137
  default=True,
140
138
  help_text=_(
141
- "Whether the collection is enabled or not."
139
+ 'Disabled collections are "soft deleted", and should be re-enabled before use, or be deleted.',
142
140
  ),
143
141
  )
144
142
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: openedx-learning
3
- Version: 0.13.0
3
+ Version: 0.13.1
4
4
  Summary: Open edX Learning Core and Tagging.
5
5
  Home-page: https://github.com/openedx/openedx-learning
6
6
  Author: David Ormsbee
@@ -18,12 +18,12 @@ Classifier: Programming Language :: Python :: 3.11
18
18
  Classifier: Programming Language :: Python :: 3.12
19
19
  Requires-Python: >=3.11
20
20
  License-File: LICENSE.txt
21
+ Requires-Dist: attrs
21
22
  Requires-Dist: Django<5.0
23
+ Requires-Dist: djangorestframework<4.0
22
24
  Requires-Dist: edx-drf-extensions
23
25
  Requires-Dist: celery
24
26
  Requires-Dist: rules<4.0
25
- Requires-Dist: djangorestframework<4.0
26
- Requires-Dist: attrs
27
27
 
28
28
  Open edX Learning Core (and Tagging)
29
29
  ====================================
@@ -1,4 +1,4 @@
1
- openedx_learning/__init__.py,sha256=-YYutFGkUCqVYEkmZ-RWMqx_I_OYmVPZ95MLLscQ9ZE,68
1
+ openedx_learning/__init__.py,sha256=ktqHmS9Hb8-3sCQfbMV2mr3Bd1bnH7z_ed1NYYChMB4,68
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
@@ -6,14 +6,15 @@ openedx_learning/api/authoring_models.py,sha256=PrhEYozI7nzC7N1v_sP1QgjwjRvLX6it
6
6
  openedx_learning/apps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  openedx_learning/apps/authoring/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  openedx_learning/apps/authoring/collections/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
- openedx_learning/apps/authoring/collections/admin.py,sha256=ErQ4rGUFgBQ1z62o2RHMenpebe8l47Na51yZGnUZR3Y,713
9
+ openedx_learning/apps/authoring/collections/admin.py,sha256=f0hySjDMfIphVDEGkCSMIUHoEiqHRA7EE2NiO7lvL4g,1156
10
10
  openedx_learning/apps/authoring/collections/api.py,sha256=Lui-9mvlUjXSfCcaHrYJc2y2aJ1obJPCIp5hvxYwnkI,5894
11
11
  openedx_learning/apps/authoring/collections/apps.py,sha256=67imy9vnyXml4cfLNGFJhuZr2yx1q92-xz4ih3yJgNU,416
12
- openedx_learning/apps/authoring/collections/models.py,sha256=YAwDf8igFbs8Fox3QpbkzBOvYL39cBsRdelxlXx6IYs,8545
12
+ openedx_learning/apps/authoring/collections/models.py,sha256=os8EKUVZ2IhMfFo2XN9tklByCUXphEtzAkKAOc0KyW8,8451
13
13
  openedx_learning/apps/authoring/collections/migrations/0001_initial.py,sha256=xcJoqMLROW9FTILYrz6UsyotVu9wBN5tRBwRoAWG6dg,1496
14
14
  openedx_learning/apps/authoring/collections/migrations/0002_remove_collection_name_collection_created_by_and_more.py,sha256=NRl-_-EkE-w4JLeJsZf6lHxYNV3TIAJVIWbv_-xytGo,2162
15
15
  openedx_learning/apps/authoring/collections/migrations/0003_collection_entities.py,sha256=-YddfCFS0HW3JsEcpatjakOyeGVklOmba9uRQ-0zIxQ,1805
16
16
  openedx_learning/apps/authoring/collections/migrations/0004_collection_key.py,sha256=G1STMrsCjU8Ykp0Zm_nIf5YqZCBy1TRTVX7q7zrly8c,2021
17
+ openedx_learning/apps/authoring/collections/migrations/0005_alter_collection_options_alter_collection_enabled.py,sha256=HdU_3zxN32nzzvOFpiVpQXleHleJhnq2d8k7jAxhUTM,504
17
18
  openedx_learning/apps/authoring/collections/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
19
  openedx_learning/apps/authoring/components/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
20
  openedx_learning/apps/authoring/components/admin.py,sha256=QE7e76C6X2V1AQPxQe6SayQPfCMmbs4RZPEPIGcvTWw,4672
@@ -109,8 +110,8 @@ openedx_tagging/core/tagging/rest_api/v1/serializers.py,sha256=gbvEBLvsmfPc3swWz
109
110
  openedx_tagging/core/tagging/rest_api/v1/urls.py,sha256=dNUKCtUCx_YzrwlbEbpDfjGVQbb2QdJ1VuJCkladj6E,752
110
111
  openedx_tagging/core/tagging/rest_api/v1/views.py,sha256=ZRkSILdb8g5k_BcuuVVfdffEdY9vFQ_YtMa3JrN0Xz8,35581
111
112
  openedx_tagging/core/tagging/rest_api/v1/views_import.py,sha256=kbHUPe5A6WaaJ3J1lFIcYCt876ecLNQfd19m7YYub6c,1470
112
- openedx_learning-0.13.0.dist-info/LICENSE.txt,sha256=QTW2QN7q3XszgUAXm9Dzgtu5LXYKbR1SGnqMa7ufEuY,35139
113
- openedx_learning-0.13.0.dist-info/METADATA,sha256=U_D0d38me8joSRyJDRbjsbeBK8uB2dlH2RokRkGVS9s,8777
114
- openedx_learning-0.13.0.dist-info/WHEEL,sha256=muXAwoPanksrVvf9Mcykr8l6Q0JyBrGUVYr50kE4bxo,109
115
- openedx_learning-0.13.0.dist-info/top_level.txt,sha256=IYFbr5mgiEHd-LOtZmXj3q3a0bkGK1M9LY7GXgnfi4M,33
116
- openedx_learning-0.13.0.dist-info/RECORD,,
113
+ openedx_learning-0.13.1.dist-info/LICENSE.txt,sha256=QTW2QN7q3XszgUAXm9Dzgtu5LXYKbR1SGnqMa7ufEuY,35139
114
+ openedx_learning-0.13.1.dist-info/METADATA,sha256=ESWEGMxOJNF9R6AwR48b_BDHw5022_jCQ3803_b_Jws,8777
115
+ openedx_learning-0.13.1.dist-info/WHEEL,sha256=muXAwoPanksrVvf9Mcykr8l6Q0JyBrGUVYr50kE4bxo,109
116
+ openedx_learning-0.13.1.dist-info/top_level.txt,sha256=IYFbr5mgiEHd-LOtZmXj3q3a0bkGK1M9LY7GXgnfi4M,33
117
+ openedx_learning-0.13.1.dist-info/RECORD,,