openedx-learning 0.30.2__py2.py3-none-any.whl → 0.31.0__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/api/authoring.py +2 -9
- openedx_learning/api/authoring_models.py +7 -7
- openedx_learning/api/django.py +24 -0
- openedx_learning/apps/openedx_content/admin.py +13 -0
- openedx_learning/apps/openedx_content/api.py +16 -0
- openedx_learning/apps/{authoring → openedx_content/applets}/backup_restore/api.py +2 -2
- openedx_learning/apps/{authoring → openedx_content/applets}/backup_restore/serializers.py +1 -1
- openedx_learning/apps/{authoring → openedx_content/applets}/backup_restore/toml.py +4 -4
- openedx_learning/apps/{authoring → openedx_content/applets}/backup_restore/zipper.py +10 -9
- openedx_learning/apps/{authoring → openedx_content/applets}/collections/api.py +1 -1
- openedx_learning/apps/{authoring → openedx_content/applets}/collections/models.py +4 -1
- openedx_learning/apps/{authoring → openedx_content/applets}/components/admin.py +1 -1
- openedx_learning/apps/{authoring → openedx_content/applets}/components/api.py +1 -1
- openedx_learning/apps/{authoring → openedx_content/applets}/components/models.py +4 -2
- openedx_learning/apps/{authoring → openedx_content/applets}/contents/api.py +3 -2
- openedx_learning/apps/{authoring → openedx_content/applets}/contents/models.py +8 -2
- openedx_learning/apps/{authoring → openedx_content/applets}/publishing/api.py +1 -1
- openedx_learning/apps/{authoring → openedx_content/applets}/publishing/models/entity_list.py +1 -0
- openedx_learning/apps/{authoring → openedx_content/applets}/sections/api.py +1 -2
- openedx_learning/apps/{authoring → openedx_content/applets}/subsections/api.py +1 -2
- openedx_learning/apps/{authoring → openedx_content/applets}/units/api.py +1 -2
- openedx_learning/apps/openedx_content/apps.py +52 -0
- openedx_learning/apps/{authoring → openedx_content/backcompat}/backup_restore/apps.py +1 -1
- openedx_learning/apps/{authoring → openedx_content/backcompat}/collections/apps.py +1 -1
- openedx_learning/apps/openedx_content/backcompat/collections/migrations/0006_remove_all_field_state_for_move_to_applet.py +82 -0
- openedx_learning/apps/openedx_content/backcompat/collections/models.py +9 -0
- openedx_learning/apps/openedx_content/backcompat/components/apps.py +15 -0
- openedx_learning/apps/openedx_content/backcompat/components/migrations/0005_remove_all_field_state_for_move_to_applet.py +72 -0
- openedx_learning/apps/openedx_content/backcompat/components/models.py +11 -0
- openedx_learning/apps/{authoring → openedx_content/backcompat}/contents/apps.py +1 -1
- openedx_learning/apps/openedx_content/backcompat/contents/migrations/0002_remove_all_field_state_for_move_to_applet.py +26 -0
- openedx_learning/apps/openedx_content/backcompat/publishing/apps.py +15 -0
- openedx_learning/apps/openedx_content/backcompat/publishing/migrations/0010_backfill_dependencies.py +432 -0
- openedx_learning/apps/openedx_content/backcompat/publishing/migrations/0011_remove_all_field_state_for_move_to_applet.py +288 -0
- openedx_learning/apps/openedx_content/backcompat/publishing/models.py +27 -0
- openedx_learning/apps/openedx_content/backcompat/sections/__init__.py +0 -0
- openedx_learning/apps/openedx_content/backcompat/sections/apps.py +16 -0
- openedx_learning/apps/openedx_content/backcompat/sections/migrations/0002_remove_all_field_state_for_move_to_applet.py +29 -0
- openedx_learning/apps/openedx_content/backcompat/sections/migrations/__init__.py +0 -0
- openedx_learning/apps/openedx_content/backcompat/subsections/__init__.py +0 -0
- openedx_learning/apps/openedx_content/backcompat/subsections/apps.py +16 -0
- openedx_learning/apps/openedx_content/backcompat/subsections/migrations/0002_remove_all_field_state_for_move_to_applet.py +29 -0
- openedx_learning/apps/openedx_content/backcompat/subsections/migrations/__init__.py +0 -0
- openedx_learning/apps/openedx_content/backcompat/units/__init__.py +0 -0
- openedx_learning/apps/openedx_content/backcompat/units/apps.py +16 -0
- openedx_learning/apps/openedx_content/backcompat/units/migrations/0002_remove_all_field_state_for_move_to_applet.py +29 -0
- openedx_learning/apps/openedx_content/backcompat/units/migrations/__init__.py +0 -0
- openedx_learning/apps/openedx_content/management/__init__.py +0 -0
- openedx_learning/apps/openedx_content/management/commands/__init__.py +0 -0
- openedx_learning/apps/{authoring/components → openedx_content}/management/commands/add_assets_to_component.py +1 -2
- openedx_learning/apps/{authoring/backup_restore → openedx_content}/management/commands/lp_dump.py +2 -2
- openedx_learning/apps/{authoring/backup_restore → openedx_content}/management/commands/lp_load.py +1 -1
- openedx_learning/apps/openedx_content/migrations/0001_initial.py +654 -0
- openedx_learning/apps/openedx_content/migrations/0002_rename_tables_to_openedx_content.py +138 -0
- openedx_learning/apps/openedx_content/migrations/__init__.py +0 -0
- openedx_learning/apps/openedx_content/models.py +17 -0
- openedx_learning/contrib/media_server/views.py +1 -1
- {openedx_learning-0.30.2.dist-info → openedx_learning-0.31.0.dist-info}/METADATA +4 -4
- openedx_learning-0.31.0.dist-info/RECORD +194 -0
- {openedx_learning-0.30.2.dist-info → openedx_learning-0.31.0.dist-info}/WHEEL +1 -1
- openedx_learning/apps/authoring/components/apps.py +0 -24
- openedx_learning/apps/authoring/publishing/apps.py +0 -25
- openedx_learning/apps/authoring/publishing/migrations/0010_backfill_dependencies.py +0 -149
- openedx_learning/apps/authoring/sections/apps.py +0 -25
- openedx_learning/apps/authoring/subsections/apps.py +0 -25
- openedx_learning/apps/authoring/units/apps.py +0 -25
- openedx_learning-0.30.2.dist-info/RECORD +0 -168
- /openedx_learning/apps/{authoring → openedx_content}/__init__.py +0 -0
- /openedx_learning/apps/{authoring/backup_restore → openedx_content/applets}/__init__.py +0 -0
- /openedx_learning/apps/{authoring/backup_restore/management → openedx_content/applets/backup_restore}/__init__.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/applets}/backup_restore/admin.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/applets}/backup_restore/models.py +0 -0
- /openedx_learning/apps/{authoring/backup_restore/management/commands → openedx_content/applets/collections}/__init__.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/applets}/collections/admin.py +0 -0
- /openedx_learning/apps/{authoring/backup_restore/migrations → openedx_content/applets/components}/__init__.py +0 -0
- /openedx_learning/apps/{authoring/collections → openedx_content/applets/contents}/__init__.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/applets}/contents/admin.py +0 -0
- /openedx_learning/apps/{authoring/collections/migrations → openedx_content/applets/publishing}/__init__.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/applets}/publishing/admin.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/applets}/publishing/contextmanagers.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/applets}/publishing/models/__init__.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/applets}/publishing/models/container.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/applets}/publishing/models/draft_log.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/applets}/publishing/models/learning_package.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/applets}/publishing/models/publish_log.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/applets}/publishing/models/publishable_entity.py +0 -0
- /openedx_learning/apps/{authoring/components → openedx_content/applets/sections}/__init__.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/applets}/sections/admin.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/applets}/sections/models.py +0 -0
- /openedx_learning/apps/{authoring/components/management → openedx_content/applets/subsections}/__init__.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/applets}/subsections/admin.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/applets}/subsections/models.py +0 -0
- /openedx_learning/apps/{authoring/components/management/commands → openedx_content/applets/units}/__init__.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/applets}/units/admin.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/applets}/units/models.py +0 -0
- /openedx_learning/apps/{authoring/components/migrations → openedx_content/backcompat}/__init__.py +0 -0
- /openedx_learning/apps/{authoring/contents → openedx_content/backcompat/backup_restore}/__init__.py +0 -0
- /openedx_learning/apps/{authoring/contents → openedx_content/backcompat/backup_restore}/migrations/__init__.py +0 -0
- /openedx_learning/apps/{authoring/publishing → openedx_content/backcompat/collections}/__init__.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/backcompat}/collections/migrations/0001_initial.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/backcompat}/collections/migrations/0002_remove_collection_name_collection_created_by_and_more.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/backcompat}/collections/migrations/0003_collection_entities.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/backcompat}/collections/migrations/0004_collection_key.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/backcompat}/collections/migrations/0005_alter_collection_options_alter_collection_enabled.py +0 -0
- /openedx_learning/apps/{authoring/publishing → openedx_content/backcompat/collections}/migrations/__init__.py +0 -0
- /openedx_learning/apps/{authoring/sections → openedx_content/backcompat/components}/__init__.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/backcompat}/components/migrations/0001_initial.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/backcompat}/components/migrations/0002_alter_componentversioncontent_key.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/backcompat}/components/migrations/0003_remove_componentversioncontent_learner_downloadable.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/backcompat}/components/migrations/0004_remove_componentversioncontent_uuid.py +0 -0
- /openedx_learning/apps/{authoring/sections → openedx_content/backcompat/components}/migrations/__init__.py +0 -0
- /openedx_learning/apps/{authoring/subsections → openedx_content/backcompat/contents}/__init__.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/backcompat}/contents/migrations/0001_initial.py +0 -0
- /openedx_learning/apps/{authoring/subsections → openedx_content/backcompat/contents}/migrations/__init__.py +0 -0
- /openedx_learning/apps/{authoring/units → openedx_content/backcompat/publishing}/__init__.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/backcompat}/publishing/migrations/0001_initial.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/backcompat}/publishing/migrations/0002_alter_learningpackage_key_and_more.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/backcompat}/publishing/migrations/0003_containers.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/backcompat}/publishing/migrations/0004_publishableentity_can_stand_alone.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/backcompat}/publishing/migrations/0005_alter_entitylistrow_options.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/backcompat}/publishing/migrations/0006_draftchangelog.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/backcompat}/publishing/migrations/0007_bootstrap_draftchangelog.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/backcompat}/publishing/migrations/0008_alter_draftchangelogrecord_options_and_more.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/backcompat}/publishing/migrations/0009_dependencies_and_hashing.py +0 -0
- /openedx_learning/apps/{authoring/units → openedx_content/backcompat/publishing}/migrations/__init__.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/backcompat}/sections/migrations/0001_initial.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/backcompat}/subsections/migrations/0001_initial.py +0 -0
- /openedx_learning/apps/{authoring → openedx_content/backcompat}/units/migrations/0001_initial.py +0 -0
- {openedx_learning-0.30.2.dist-info → openedx_learning-0.31.0.dist-info}/licenses/LICENSE.txt +0 -0
- {openedx_learning-0.30.2.dist-info → openedx_learning-0.31.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
# Generated by Django 5.2.10 on 2026-01-30 00:36
|
|
2
|
+
|
|
3
|
+
from django.db import migrations
|
|
4
|
+
from django.db.migrations.operations.special import SeparateDatabaseAndState
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class Migration(migrations.Migration):
|
|
8
|
+
|
|
9
|
+
dependencies = [
|
|
10
|
+
('oel_components', '0005_remove_all_field_state_for_move_to_applet'),
|
|
11
|
+
('oel_publishing', '0010_backfill_dependencies'),
|
|
12
|
+
('oel_sections', '0002_remove_all_field_state_for_move_to_applet'),
|
|
13
|
+
('oel_subsections', '0002_remove_all_field_state_for_move_to_applet'),
|
|
14
|
+
('oel_units', '0002_remove_all_field_state_for_move_to_applet'),
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
operations = [
|
|
18
|
+
SeparateDatabaseAndState(
|
|
19
|
+
database_operations=[],
|
|
20
|
+
state_operations=[
|
|
21
|
+
migrations.RemoveField(
|
|
22
|
+
model_name='containerversion',
|
|
23
|
+
name='container',
|
|
24
|
+
),
|
|
25
|
+
migrations.RemoveField(
|
|
26
|
+
model_name='containerversion',
|
|
27
|
+
name='entity_list',
|
|
28
|
+
),
|
|
29
|
+
migrations.RemoveField(
|
|
30
|
+
model_name='containerversion',
|
|
31
|
+
name='publishable_entity_version',
|
|
32
|
+
),
|
|
33
|
+
migrations.RemoveField(
|
|
34
|
+
model_name='draft',
|
|
35
|
+
name='draft_log_record',
|
|
36
|
+
),
|
|
37
|
+
migrations.RemoveField(
|
|
38
|
+
model_name='draft',
|
|
39
|
+
name='entity',
|
|
40
|
+
),
|
|
41
|
+
migrations.RemoveField(
|
|
42
|
+
model_name='draft',
|
|
43
|
+
name='version',
|
|
44
|
+
),
|
|
45
|
+
migrations.RemoveField(
|
|
46
|
+
model_name='draftchangelogrecord',
|
|
47
|
+
name='draft_change_log',
|
|
48
|
+
),
|
|
49
|
+
migrations.RemoveField(
|
|
50
|
+
model_name='draftchangelogrecord',
|
|
51
|
+
name='entity',
|
|
52
|
+
),
|
|
53
|
+
migrations.RemoveField(
|
|
54
|
+
model_name='draftchangelogrecord',
|
|
55
|
+
name='new_version',
|
|
56
|
+
),
|
|
57
|
+
migrations.RemoveField(
|
|
58
|
+
model_name='draftchangelogrecord',
|
|
59
|
+
name='old_version',
|
|
60
|
+
),
|
|
61
|
+
migrations.AlterModelOptions(
|
|
62
|
+
name='draftchangelogrecord',
|
|
63
|
+
options={},
|
|
64
|
+
),
|
|
65
|
+
migrations.RemoveConstraint(
|
|
66
|
+
model_name='draftchangelogrecord',
|
|
67
|
+
name='oel_dlr_uniq_dcl',
|
|
68
|
+
),
|
|
69
|
+
migrations.RemoveIndex(
|
|
70
|
+
model_name='draftchangelogrecord',
|
|
71
|
+
name='oel_dlr_idx_entity_rdcl',
|
|
72
|
+
),
|
|
73
|
+
migrations.RemoveField(
|
|
74
|
+
model_name='draftchangelogrecord',
|
|
75
|
+
name='dependencies_hash_digest',
|
|
76
|
+
),
|
|
77
|
+
migrations.RemoveField(
|
|
78
|
+
model_name='draftsideeffect',
|
|
79
|
+
name='cause',
|
|
80
|
+
),
|
|
81
|
+
migrations.RemoveField(
|
|
82
|
+
model_name='draftsideeffect',
|
|
83
|
+
name='effect',
|
|
84
|
+
),
|
|
85
|
+
migrations.RemoveField(
|
|
86
|
+
model_name='entitylistrow',
|
|
87
|
+
name='entity_list',
|
|
88
|
+
),
|
|
89
|
+
migrations.RemoveField(
|
|
90
|
+
model_name='entitylistrow',
|
|
91
|
+
name='entity',
|
|
92
|
+
),
|
|
93
|
+
migrations.RemoveField(
|
|
94
|
+
model_name='entitylistrow',
|
|
95
|
+
name='entity_version',
|
|
96
|
+
),
|
|
97
|
+
migrations.RemoveField(
|
|
98
|
+
model_name='publishableentityversion',
|
|
99
|
+
name='created_by',
|
|
100
|
+
),
|
|
101
|
+
migrations.RemoveField(
|
|
102
|
+
model_name='publishableentityversion',
|
|
103
|
+
name='dependencies',
|
|
104
|
+
),
|
|
105
|
+
migrations.RemoveField(
|
|
106
|
+
model_name='publishableentityversion',
|
|
107
|
+
name='entity',
|
|
108
|
+
),
|
|
109
|
+
migrations.RemoveField(
|
|
110
|
+
model_name='publishlogrecord',
|
|
111
|
+
name='old_version',
|
|
112
|
+
),
|
|
113
|
+
migrations.RemoveField(
|
|
114
|
+
model_name='publishlogrecord',
|
|
115
|
+
name='new_version',
|
|
116
|
+
),
|
|
117
|
+
migrations.RemoveField(
|
|
118
|
+
model_name='publishableentityversiondependency',
|
|
119
|
+
name='referring_version',
|
|
120
|
+
),
|
|
121
|
+
migrations.RemoveField(
|
|
122
|
+
model_name='published',
|
|
123
|
+
name='version',
|
|
124
|
+
),
|
|
125
|
+
migrations.RemoveField(
|
|
126
|
+
model_name='publishableentityversiondependency',
|
|
127
|
+
name='referenced_entity',
|
|
128
|
+
),
|
|
129
|
+
migrations.RemoveField(
|
|
130
|
+
model_name='published',
|
|
131
|
+
name='entity',
|
|
132
|
+
),
|
|
133
|
+
migrations.RemoveField(
|
|
134
|
+
model_name='published',
|
|
135
|
+
name='publish_log_record',
|
|
136
|
+
),
|
|
137
|
+
migrations.RemoveField(
|
|
138
|
+
model_name='publishlog',
|
|
139
|
+
name='learning_package',
|
|
140
|
+
),
|
|
141
|
+
migrations.RemoveField(
|
|
142
|
+
model_name='publishlog',
|
|
143
|
+
name='published_by',
|
|
144
|
+
),
|
|
145
|
+
migrations.RemoveField(
|
|
146
|
+
model_name='publishlogrecord',
|
|
147
|
+
name='publish_log',
|
|
148
|
+
),
|
|
149
|
+
migrations.RemoveField(
|
|
150
|
+
model_name='publishlogrecord',
|
|
151
|
+
name='entity',
|
|
152
|
+
),
|
|
153
|
+
migrations.RemoveField(
|
|
154
|
+
model_name='publishsideeffect',
|
|
155
|
+
name='cause',
|
|
156
|
+
),
|
|
157
|
+
migrations.RemoveField(
|
|
158
|
+
model_name='publishsideeffect',
|
|
159
|
+
name='effect',
|
|
160
|
+
),
|
|
161
|
+
migrations.AlterModelOptions(
|
|
162
|
+
name='draftchangelog',
|
|
163
|
+
options={},
|
|
164
|
+
),
|
|
165
|
+
migrations.AlterModelOptions(
|
|
166
|
+
name='learningpackage',
|
|
167
|
+
options={},
|
|
168
|
+
),
|
|
169
|
+
migrations.AlterModelOptions(
|
|
170
|
+
name='publishableentity',
|
|
171
|
+
options={},
|
|
172
|
+
),
|
|
173
|
+
migrations.RemoveConstraint(
|
|
174
|
+
model_name='learningpackage',
|
|
175
|
+
name='oel_publishing_lp_uniq_key',
|
|
176
|
+
),
|
|
177
|
+
migrations.RemoveConstraint(
|
|
178
|
+
model_name='publishableentity',
|
|
179
|
+
name='oel_pub_ent_uniq_lp_key',
|
|
180
|
+
),
|
|
181
|
+
migrations.RemoveIndex(
|
|
182
|
+
model_name='publishableentity',
|
|
183
|
+
name='oel_pub_ent_idx_key',
|
|
184
|
+
),
|
|
185
|
+
migrations.RemoveIndex(
|
|
186
|
+
model_name='publishableentity',
|
|
187
|
+
name='oel_pub_ent_idx_lp_rcreated',
|
|
188
|
+
),
|
|
189
|
+
migrations.RemoveField(
|
|
190
|
+
model_name='draftchangelog',
|
|
191
|
+
name='changed_at',
|
|
192
|
+
),
|
|
193
|
+
migrations.RemoveField(
|
|
194
|
+
model_name='draftchangelog',
|
|
195
|
+
name='changed_by',
|
|
196
|
+
),
|
|
197
|
+
migrations.RemoveField(
|
|
198
|
+
model_name='draftchangelog',
|
|
199
|
+
name='learning_package',
|
|
200
|
+
),
|
|
201
|
+
migrations.RemoveField(
|
|
202
|
+
model_name='draftchangelog',
|
|
203
|
+
name='uuid',
|
|
204
|
+
),
|
|
205
|
+
migrations.RemoveField(
|
|
206
|
+
model_name='learningpackage',
|
|
207
|
+
name='created',
|
|
208
|
+
),
|
|
209
|
+
migrations.RemoveField(
|
|
210
|
+
model_name='learningpackage',
|
|
211
|
+
name='description',
|
|
212
|
+
),
|
|
213
|
+
migrations.RemoveField(
|
|
214
|
+
model_name='learningpackage',
|
|
215
|
+
name='key',
|
|
216
|
+
),
|
|
217
|
+
migrations.RemoveField(
|
|
218
|
+
model_name='learningpackage',
|
|
219
|
+
name='title',
|
|
220
|
+
),
|
|
221
|
+
migrations.RemoveField(
|
|
222
|
+
model_name='learningpackage',
|
|
223
|
+
name='updated',
|
|
224
|
+
),
|
|
225
|
+
migrations.RemoveField(
|
|
226
|
+
model_name='learningpackage',
|
|
227
|
+
name='uuid',
|
|
228
|
+
),
|
|
229
|
+
migrations.RemoveField(
|
|
230
|
+
model_name='publishableentity',
|
|
231
|
+
name='can_stand_alone',
|
|
232
|
+
),
|
|
233
|
+
migrations.RemoveField(
|
|
234
|
+
model_name='publishableentity',
|
|
235
|
+
name='created',
|
|
236
|
+
),
|
|
237
|
+
migrations.RemoveField(
|
|
238
|
+
model_name='publishableentity',
|
|
239
|
+
name='created_by',
|
|
240
|
+
),
|
|
241
|
+
migrations.RemoveField(
|
|
242
|
+
model_name='publishableentity',
|
|
243
|
+
name='key',
|
|
244
|
+
),
|
|
245
|
+
migrations.RemoveField(
|
|
246
|
+
model_name='publishableentity',
|
|
247
|
+
name='learning_package',
|
|
248
|
+
),
|
|
249
|
+
migrations.RemoveField(
|
|
250
|
+
model_name='publishableentity',
|
|
251
|
+
name='uuid',
|
|
252
|
+
),
|
|
253
|
+
migrations.DeleteModel(
|
|
254
|
+
name='ContainerVersion',
|
|
255
|
+
),
|
|
256
|
+
migrations.DeleteModel(
|
|
257
|
+
name='Draft',
|
|
258
|
+
),
|
|
259
|
+
migrations.DeleteModel(
|
|
260
|
+
name='DraftSideEffect',
|
|
261
|
+
),
|
|
262
|
+
migrations.DeleteModel(
|
|
263
|
+
name='EntityList',
|
|
264
|
+
),
|
|
265
|
+
migrations.DeleteModel(
|
|
266
|
+
name='EntityListRow',
|
|
267
|
+
),
|
|
268
|
+
migrations.DeleteModel(
|
|
269
|
+
name='PublishableEntityVersion',
|
|
270
|
+
),
|
|
271
|
+
migrations.DeleteModel(
|
|
272
|
+
name='PublishableEntityVersionDependency',
|
|
273
|
+
),
|
|
274
|
+
migrations.DeleteModel(
|
|
275
|
+
name='Published',
|
|
276
|
+
),
|
|
277
|
+
migrations.DeleteModel(
|
|
278
|
+
name='PublishLog',
|
|
279
|
+
),
|
|
280
|
+
migrations.DeleteModel(
|
|
281
|
+
name='PublishLogRecord',
|
|
282
|
+
),
|
|
283
|
+
migrations.DeleteModel(
|
|
284
|
+
name='PublishSideEffect',
|
|
285
|
+
),
|
|
286
|
+
]
|
|
287
|
+
),
|
|
288
|
+
]
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""
|
|
2
|
+
These are stub models necessary to ensure a smooth migration for
|
|
3
|
+
openedx-platform apps that were built to have foreign keys to these models.
|
|
4
|
+
"""
|
|
5
|
+
from django.db import models
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class LearningPackage(models.Model):
|
|
9
|
+
id = models.AutoField(primary_key=True)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class PublishableEntity(models.Model):
|
|
13
|
+
pass
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class DraftChangeLog(models.Model):
|
|
17
|
+
pass
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class DraftChangeLogRecord(models.Model):
|
|
21
|
+
pass
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class Container(models.Model):
|
|
25
|
+
publishable_entity = models.OneToOneField(
|
|
26
|
+
PublishableEntity, on_delete=models.CASCADE, primary_key=True
|
|
27
|
+
)
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Sections Django application initialization.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from django.apps import AppConfig
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class SectionsConfig(AppConfig):
|
|
9
|
+
"""
|
|
10
|
+
Configuration for the Sections Django application.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
name = "openedx_learning.apps.openedx_content.backcompat.sections"
|
|
14
|
+
verbose_name = "Learning Core > Authoring > Sections"
|
|
15
|
+
default_auto_field = "django.db.models.BigAutoField"
|
|
16
|
+
label = "oel_sections"
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Generated by Django 5.2.10 on 2026-01-30 00:36
|
|
2
|
+
|
|
3
|
+
from django.db import migrations
|
|
4
|
+
from django.db.migrations.operations.special import SeparateDatabaseAndState
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class Migration(migrations.Migration):
|
|
8
|
+
|
|
9
|
+
dependencies = [
|
|
10
|
+
('oel_sections', '0001_initial'),
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
operations = [
|
|
14
|
+
SeparateDatabaseAndState(
|
|
15
|
+
database_operations=[],
|
|
16
|
+
state_operations=[
|
|
17
|
+
migrations.RemoveField(
|
|
18
|
+
model_name='sectionversion',
|
|
19
|
+
name='container_version',
|
|
20
|
+
),
|
|
21
|
+
migrations.DeleteModel(
|
|
22
|
+
name='Section',
|
|
23
|
+
),
|
|
24
|
+
migrations.DeleteModel(
|
|
25
|
+
name='SectionVersion',
|
|
26
|
+
),
|
|
27
|
+
]
|
|
28
|
+
),
|
|
29
|
+
]
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Subsection Django application initialization.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from django.apps import AppConfig
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class SubsectionsConfig(AppConfig):
|
|
9
|
+
"""
|
|
10
|
+
Configuration for the subsections Django application.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
name = "openedx_learning.apps.openedx_content.backcompat.subsections"
|
|
14
|
+
verbose_name = "Learning Core > Authoring > Subsections"
|
|
15
|
+
default_auto_field = "django.db.models.BigAutoField"
|
|
16
|
+
label = "oel_subsections"
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Generated by Django 5.2.10 on 2026-01-30 00:36
|
|
2
|
+
|
|
3
|
+
from django.db import migrations
|
|
4
|
+
from django.db.migrations.operations.special import SeparateDatabaseAndState
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class Migration(migrations.Migration):
|
|
8
|
+
|
|
9
|
+
dependencies = [
|
|
10
|
+
('oel_subsections', '0001_initial'),
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
operations = [
|
|
14
|
+
SeparateDatabaseAndState(
|
|
15
|
+
database_operations=[],
|
|
16
|
+
state_operations=[
|
|
17
|
+
migrations.RemoveField(
|
|
18
|
+
model_name='subsectionversion',
|
|
19
|
+
name='container_version',
|
|
20
|
+
),
|
|
21
|
+
migrations.DeleteModel(
|
|
22
|
+
name='Subsection',
|
|
23
|
+
),
|
|
24
|
+
migrations.DeleteModel(
|
|
25
|
+
name='SubsectionVersion',
|
|
26
|
+
),
|
|
27
|
+
]
|
|
28
|
+
),
|
|
29
|
+
]
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Unit Django application initialization.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from django.apps import AppConfig
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class UnitsConfig(AppConfig):
|
|
9
|
+
"""
|
|
10
|
+
Configuration for the units Django application.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
name = "openedx_learning.apps.openedx_content.backcompat.units"
|
|
14
|
+
verbose_name = "Learning Core > Authoring > Units"
|
|
15
|
+
default_auto_field = "django.db.models.BigAutoField"
|
|
16
|
+
label = "oel_units"
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Generated by Django 5.2.10 on 2026-01-30 00:36
|
|
2
|
+
|
|
3
|
+
from django.db import migrations
|
|
4
|
+
from django.db.migrations.operations.special import SeparateDatabaseAndState
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class Migration(migrations.Migration):
|
|
8
|
+
|
|
9
|
+
dependencies = [
|
|
10
|
+
('oel_units', '0001_initial'),
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
operations = [
|
|
14
|
+
SeparateDatabaseAndState(
|
|
15
|
+
database_operations=[],
|
|
16
|
+
state_operations=[
|
|
17
|
+
migrations.RemoveField(
|
|
18
|
+
model_name='unitversion',
|
|
19
|
+
name='container_version',
|
|
20
|
+
),
|
|
21
|
+
migrations.DeleteModel(
|
|
22
|
+
name='Unit',
|
|
23
|
+
),
|
|
24
|
+
migrations.DeleteModel(
|
|
25
|
+
name='UnitVersion',
|
|
26
|
+
),
|
|
27
|
+
]
|
|
28
|
+
),
|
|
29
|
+
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -9,8 +9,7 @@ from datetime import datetime, timezone
|
|
|
9
9
|
|
|
10
10
|
from django.core.management.base import BaseCommand
|
|
11
11
|
|
|
12
|
-
from
|
|
13
|
-
from ...api import create_next_component_version, get_component_by_key
|
|
12
|
+
from ...api import create_next_component_version, get_component_by_key, get_learning_package_by_key
|
|
14
13
|
|
|
15
14
|
|
|
16
15
|
class Command(BaseCommand):
|
openedx_learning/apps/{authoring/backup_restore → openedx_content}/management/commands/lp_dump.py
RENAMED
|
@@ -8,8 +8,8 @@ from django.contrib.auth import get_user_model
|
|
|
8
8
|
from django.core.management import CommandError
|
|
9
9
|
from django.core.management.base import BaseCommand
|
|
10
10
|
|
|
11
|
-
from openedx_learning.apps.
|
|
12
|
-
from openedx_learning.apps.
|
|
11
|
+
from openedx_learning.apps.openedx_content.applets.backup_restore.api import create_zip_file
|
|
12
|
+
from openedx_learning.apps.openedx_content.applets.publishing.api import LearningPackage
|
|
13
13
|
|
|
14
14
|
logger = logging.getLogger(__name__)
|
|
15
15
|
|
openedx_learning/apps/{authoring/backup_restore → openedx_content}/management/commands/lp_load.py
RENAMED
|
@@ -8,7 +8,7 @@ from django.contrib.auth import get_user_model
|
|
|
8
8
|
from django.core.management import CommandError
|
|
9
9
|
from django.core.management.base import BaseCommand
|
|
10
10
|
|
|
11
|
-
from openedx_learning.apps.
|
|
11
|
+
from openedx_learning.apps.openedx_content.applets.backup_restore.api import load_learning_package
|
|
12
12
|
|
|
13
13
|
logger = logging.getLogger(__name__)
|
|
14
14
|
|