learning-paths-plugin 0.3.4rc1__tar.gz → 0.3.4rc2__tar.gz
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.
- {learning_paths_plugin-0.3.4rc1/learning_paths_plugin.egg-info → learning_paths_plugin-0.3.4rc2}/PKG-INFO +1 -1
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/__init__.py +1 -1
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/admin.py +25 -16
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2/learning_paths_plugin.egg-info}/PKG-INFO +1 -1
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/CHANGELOG.rst +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/LICENSE.txt +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/MANIFEST.in +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/README.rst +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/api/__init__.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/api/urls.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/api/v1/__init__.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/api/v1/filters.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/api/v1/permissions.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/api/v1/serializers.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/api/v1/urls.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/api/v1/utils.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/api/v1/views.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/apps.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/compat.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/conftest.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/keys.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/migrations/0001_initial.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/migrations/0002_learningpath_uuid.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/migrations/0003_learningpath_subtitle.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/migrations/0004_auto_20240207_1633.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/migrations/0005_learningpathstep_weight_learningpathgradingcriteria.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/migrations/0006_enrollment_models.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/migrations/0007_replace_uuid_with_learningpathkey.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/migrations/0008_remove_learningpathstep_relative_due_date_in_days.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/migrations/0009_remove_learningpath_slug.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/migrations/0010_learningpath_invite_only.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/migrations/0011_replace_learningpath_image_url_with_image.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/migrations/0012_alter_learningpath_subtitle.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/migrations/0013_enrollment_audit.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/migrations/__init__.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/models.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/receivers.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/settings.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/templates/learning_paths/base.html +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/urls.py +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths_plugin.egg-info/SOURCES.txt +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths_plugin.egg-info/dependency_links.txt +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths_plugin.egg-info/entry_points.txt +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths_plugin.egg-info/not-zip-safe +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths_plugin.egg-info/requires.txt +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths_plugin.egg-info/top_level.txt +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/pyproject.toml +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/requirements/base.in +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/requirements/constraints.txt +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/setup.cfg +0 -0
- {learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/setup.py +0 -0
|
@@ -137,6 +137,7 @@ class BulkEnrollUsersForm(forms.ModelForm):
|
|
|
137
137
|
return users
|
|
138
138
|
|
|
139
139
|
|
|
140
|
+
@admin.register(LearningPath)
|
|
140
141
|
class LearningPathAdmin(admin.ModelAdmin):
|
|
141
142
|
"""Admin for Learning Path."""
|
|
142
143
|
|
|
@@ -178,13 +179,14 @@ class LearningPathAdmin(admin.ModelAdmin):
|
|
|
178
179
|
LearningPathEnrollment.objects.get_or_create(user=user, learning_path=form.instance)
|
|
179
180
|
|
|
180
181
|
|
|
182
|
+
@admin.register(Skill)
|
|
181
183
|
class SkillAdmin(admin.ModelAdmin):
|
|
182
184
|
"""Admin for Learning Path generic skill."""
|
|
183
185
|
|
|
184
186
|
model = Skill
|
|
185
187
|
|
|
186
188
|
|
|
187
|
-
class
|
|
189
|
+
class EnrollmentAuditInline(admin.TabularInline):
|
|
188
190
|
"""Inline admin for LearningPathEnrollmentAudit records."""
|
|
189
191
|
|
|
190
192
|
model = LearningPathEnrollmentAudit
|
|
@@ -209,7 +211,7 @@ class LearningPathEnrollmentAuditInline(admin.TabularInline):
|
|
|
209
211
|
return False
|
|
210
212
|
|
|
211
213
|
|
|
212
|
-
class
|
|
214
|
+
class EnrollmentAllowedAuditInline(admin.TabularInline):
|
|
213
215
|
"""Inline admin for LearningPathEnrollmentAudit records related to enrollment allowed."""
|
|
214
216
|
|
|
215
217
|
model = LearningPathEnrollmentAudit
|
|
@@ -234,13 +236,28 @@ class LearningPathEnrollmentAllowedAuditInline(admin.TabularInline):
|
|
|
234
236
|
return False
|
|
235
237
|
|
|
236
238
|
|
|
239
|
+
@admin.register(LearningPathEnrollment)
|
|
237
240
|
class EnrolledUsersAdmin(admin.ModelAdmin):
|
|
238
241
|
"""Admin for Learning Path enrollment."""
|
|
239
242
|
|
|
240
243
|
model = LearningPathEnrollment
|
|
241
244
|
raw_id_fields = ("user",)
|
|
242
245
|
autocomplete_fields = ["learning_path"]
|
|
243
|
-
inlines = [
|
|
246
|
+
inlines = [EnrollmentAuditInline]
|
|
247
|
+
|
|
248
|
+
list_display = [
|
|
249
|
+
"id",
|
|
250
|
+
"user",
|
|
251
|
+
"learning_path",
|
|
252
|
+
"enrolled_at",
|
|
253
|
+
"is_active",
|
|
254
|
+
]
|
|
255
|
+
|
|
256
|
+
list_filter = [
|
|
257
|
+
"learning_path__key",
|
|
258
|
+
"created",
|
|
259
|
+
"is_active",
|
|
260
|
+
]
|
|
244
261
|
|
|
245
262
|
search_fields = [
|
|
246
263
|
"id",
|
|
@@ -251,7 +268,7 @@ class EnrolledUsersAdmin(admin.ModelAdmin):
|
|
|
251
268
|
|
|
252
269
|
|
|
253
270
|
@admin.register(LearningPathEnrollmentAllowed)
|
|
254
|
-
class
|
|
271
|
+
class EnrollmentAllowedAdmin(admin.ModelAdmin):
|
|
255
272
|
"""Admin configuration for LearningPathEnrollmentAllowed model."""
|
|
256
273
|
|
|
257
274
|
list_display = [
|
|
@@ -264,7 +281,6 @@ class LearningPathEnrollmentAllowedAdmin(admin.ModelAdmin):
|
|
|
264
281
|
|
|
265
282
|
list_filter = [
|
|
266
283
|
"learning_path",
|
|
267
|
-
"user",
|
|
268
284
|
"created",
|
|
269
285
|
]
|
|
270
286
|
|
|
@@ -272,7 +288,6 @@ class LearningPathEnrollmentAllowedAdmin(admin.ModelAdmin):
|
|
|
272
288
|
"email",
|
|
273
289
|
"user__username",
|
|
274
290
|
"user__email",
|
|
275
|
-
"learning_path__title",
|
|
276
291
|
"learning_path__key",
|
|
277
292
|
]
|
|
278
293
|
|
|
@@ -282,7 +297,7 @@ class LearningPathEnrollmentAllowedAdmin(admin.ModelAdmin):
|
|
|
282
297
|
"modified",
|
|
283
298
|
]
|
|
284
299
|
|
|
285
|
-
inlines = [
|
|
300
|
+
inlines = [EnrollmentAllowedAuditInline]
|
|
286
301
|
|
|
287
302
|
def get_user(self, obj):
|
|
288
303
|
"""Get the associated user, if any."""
|
|
@@ -292,7 +307,7 @@ class LearningPathEnrollmentAllowedAdmin(admin.ModelAdmin):
|
|
|
292
307
|
|
|
293
308
|
|
|
294
309
|
@admin.register(LearningPathEnrollmentAudit)
|
|
295
|
-
class
|
|
310
|
+
class EnrollmentAuditAdmin(admin.ModelAdmin):
|
|
296
311
|
"""Admin configuration for LearningPathEnrollmentAudit model."""
|
|
297
312
|
|
|
298
313
|
list_display = [
|
|
@@ -311,7 +326,6 @@ class LearningPathEnrollmentAuditAdmin(admin.ModelAdmin):
|
|
|
311
326
|
"created",
|
|
312
327
|
"org",
|
|
313
328
|
"role",
|
|
314
|
-
"enrolled_by",
|
|
315
329
|
]
|
|
316
330
|
|
|
317
331
|
search_fields = [
|
|
@@ -320,8 +334,8 @@ class LearningPathEnrollmentAuditAdmin(admin.ModelAdmin):
|
|
|
320
334
|
"enrollment__user__username",
|
|
321
335
|
"enrollment__user__email",
|
|
322
336
|
"enrollment_allowed__email",
|
|
323
|
-
"
|
|
324
|
-
"
|
|
337
|
+
"enrollment__learning_path__key",
|
|
338
|
+
"enrollment_allowed__learning_path__key",
|
|
325
339
|
"reason",
|
|
326
340
|
]
|
|
327
341
|
|
|
@@ -353,8 +367,3 @@ class LearningPathEnrollmentAuditAdmin(admin.ModelAdmin):
|
|
|
353
367
|
return "-"
|
|
354
368
|
|
|
355
369
|
get_learning_path.short_description = "Learning Path"
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
admin.site.register(LearningPath, LearningPathAdmin)
|
|
359
|
-
admin.site.register(Skill, SkillAdmin)
|
|
360
|
-
admin.site.register(LearningPathEnrollment, EnrolledUsersAdmin)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/api/__init__.py
RENAMED
|
File without changes
|
{learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/api/urls.py
RENAMED
|
File without changes
|
{learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/api/v1/__init__.py
RENAMED
|
File without changes
|
{learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/api/v1/filters.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/api/v1/urls.py
RENAMED
|
File without changes
|
{learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/api/v1/utils.py
RENAMED
|
File without changes
|
{learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/api/v1/views.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/conftest.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/receivers.py
RENAMED
|
File without changes
|
{learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/learning_paths/settings.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{learning_paths_plugin-0.3.4rc1 → learning_paths_plugin-0.3.4rc2}/requirements/constraints.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|