codeforlife-portal 8.0.2__py2.py3-none-any.whl → 8.0.3__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 codeforlife-portal might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: codeforlife-portal
3
- Version: 8.0.2
3
+ Version: 8.0.3
4
4
  Classifier: Programming Language :: Python
5
5
  Classifier: Programming Language :: Python :: 3.12
6
6
  Classifier: Framework :: Django
@@ -108,7 +108,7 @@ example_project/portal_test_settings.py,sha256=7Q7SdosA0Ba85qz-xkAe3EHyMPpSIQ61C
108
108
  example_project/settings.py,sha256=NjFhtDNLwdY5vhUAtqk9a9m3GRfcuWRVqIqnJ3u0o6E,5658
109
109
  example_project/urls.py,sha256=FUTzHPlUS1O5kqMHjL5V4L552N2ln7uTDXcw9wjKUto,422
110
110
  example_project/wsgi.py,sha256=U1W6WzZxZaIdYZ5tks7w9fqp5WS5qvn2iThsVcskrWw,829
111
- portal/__init__.py,sha256=hTIZ_8cc-ggqcFeOYQQKOHudFQCQNQlM4ZltuYIIjD4,22
111
+ portal/__init__.py,sha256=GImAlzwPDxsACkYFf5rTrX8QMH23tcqdm6vgjfFYD10,22
112
112
  portal/admin.py,sha256=RKJizTF6dPJKmGPZw7nZUM0X8jkiTjgyKhLQxtvHJ0I,6148
113
113
  portal/app_settings.py,sha256=DhWLQOwM0zVOXE3O5TNKbMM9K6agfLuCsHOdr1J7xEI,651
114
114
  portal/backends.py,sha256=2Dss6_WoQwPuDzJUF1yEaTQTNG4eUrD12ujJQ5cp5Tc,812
@@ -498,7 +498,7 @@ portal/templates/portal/teach/onboarding_students.html,sha256=09q658n7U7Vuzy_M_0
498
498
  portal/templates/portal/teach/teacher_add_external_student.html,sha256=Lrrh4W3EwxxXKe45kcqzf2BcPxYo_mLahGIQMNJjX9E,2453
499
499
  portal/templates/portal/teach/teacher_added_external_student.html,sha256=f18RhP5PCE13yjBTrQTCwPLZnkcZb0bDUZ_Z2Oh3D3I,1189
500
500
  portal/templates/portal/teach/teacher_dismiss_students.html,sha256=_5FvvtNjdYpZaM9lDzXrhhTjAD3NK_92kDYzh7xqowI,4283
501
- portal/templates/portal/teach/teacher_edit_class.html,sha256=R25aFNJDDcMzrwQEFRR1EyAc_d6upNPBL1VyQES4ASg,13023
501
+ portal/templates/portal/teach/teacher_edit_class.html,sha256=ldF9vo0Eoa6N4yUsXMSK9qDGLDX-_ku1pmADS8hnHCk,13294
502
502
  portal/templates/portal/teach/teacher_edit_student.html,sha256=JNF8JyoZh0J-oKH4dz7SGSxR0t7J1lbTGLvjhNbk2Rw,3237
503
503
  portal/templates/portal/teach/teacher_move_all_classes.html,sha256=u9PNJHrKaIXd67vuwhgMmVXumgSnkKH4QKx1bd3O2VY,1780
504
504
  portal/templates/portal/teach/teacher_move_students.html,sha256=toBtjtpiCwvxo2FTJX5oZDzJ9batXdi7ty5AiCHnq4s,1591
@@ -626,13 +626,13 @@ portal/views/student/edit_account_details.py,sha256=Ba-3D_zzKbX5N01NG5qqBS0ud10B
626
626
  portal/views/student/play.py,sha256=GMxk65bxWOe1Ds2kb6rvuOd1GoAtt5v_9AihLNXoUL0,8768
627
627
  portal/views/teacher/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
628
628
  portal/views/teacher/dashboard.py,sha256=pjzOOCz29d4VHukaCI5QhkDsu-RPvy7SXC9dDcPo50k,27422
629
- portal/views/teacher/teach.py,sha256=KDlQdHwU9YdoK_fikLpWO_qDk3ZlX1elYFiiWHBQm6I,36688
629
+ portal/views/teacher/teach.py,sha256=S0I1IQzDK2z1uMK3rfBzW3bKS7ZV3-xbOVZS2Kg_RU0,36836
630
630
  portal/views/two_factor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
631
631
  portal/views/two_factor/core.py,sha256=Lk32z2SN2Pg0rRkK-N-LXMvXC1kKKsH3l692kiSDQ4E,964
632
632
  portal/views/two_factor/form.py,sha256=lnHNKI-BMlpncTuW3zUzjPaJJNuEra2I_nOam0eOKFY,257
633
633
  portal/views/two_factor/profile.py,sha256=SHSg_xHccE5PtD-OfuOkYhREYz_er4bj5ro1RjJ88Yw,393
634
- codeforlife_portal-8.0.2.dist-info/LICENSE.md,sha256=9AbRlCDqD2D1tPibimysFv3zg3AIc49-eyv9aEsyq9w,115
635
- codeforlife_portal-8.0.2.dist-info/METADATA,sha256=J59Su8ekITC171pvTLCred37bfPFxHSfexP5UOaGFq4,3078
636
- codeforlife_portal-8.0.2.dist-info/WHEEL,sha256=Kh9pAotZVRFj97E15yTA4iADqXdQfIVTHcNaZTjxeGM,110
637
- codeforlife_portal-8.0.2.dist-info/top_level.txt,sha256=8e5pdsuIoTqEAMqpelHBjGjLbffcBtgOoggmd2q7nMw,41
638
- codeforlife_portal-8.0.2.dist-info/RECORD,,
634
+ codeforlife_portal-8.0.3.dist-info/LICENSE.md,sha256=9AbRlCDqD2D1tPibimysFv3zg3AIc49-eyv9aEsyq9w,115
635
+ codeforlife_portal-8.0.3.dist-info/METADATA,sha256=xastgmJa810ijhKg2U5emDoMG0_Jfk5WsNVPtYCvZ_k,3078
636
+ codeforlife_portal-8.0.3.dist-info/WHEEL,sha256=Kh9pAotZVRFj97E15yTA4iADqXdQfIVTHcNaZTjxeGM,110
637
+ codeforlife_portal-8.0.3.dist-info/top_level.txt,sha256=8e5pdsuIoTqEAMqpelHBjGjLbffcBtgOoggmd2q7nMw,41
638
+ codeforlife_portal-8.0.3.dist-info/RECORD,,
portal/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "8.0.2"
1
+ __version__ = "8.0.3"
@@ -13,9 +13,14 @@
13
13
  // Uncheck the checkboxes that correspond to the already-locked levels
14
14
  $(document).ready(function(){
15
15
  const lockedLevelsIds = {{ locked_levels }};
16
+ const lockedWorksheetIds = {{ locked_worksheet_ids }};
16
17
 
17
18
  lockedLevelsIds.forEach(function(lockedLevelId) {
18
- const selector = `[value="${lockedLevelId}"]`;
19
+ const selector = `[value="level:${lockedLevelId}"]`;
20
+ $(selector).click();
21
+ })
22
+ lockedWorksheetIds.forEach(function(lockedWorksheetId) {
23
+ const selector = `[value="worksheet:${lockedWorksheetId}"]`;
19
24
  $(selector).click();
20
25
  })
21
26
  })
@@ -303,6 +303,8 @@ def teacher_edit_class(request, access_code):
303
303
  locked_levels = klass.locked_levels.all()
304
304
  locked_levels_ids = [locked_level.id for locked_level in locked_levels]
305
305
 
306
+ locked_worksheet_ids = [worksheet.id for worksheet in klass.locked_worksheets.all()]
307
+
306
308
  form = ClassEditForm(
307
309
  initial={
308
310
  "name": klass.name,
@@ -336,6 +338,7 @@ def teacher_edit_class(request, access_code):
336
338
  "blockly_episodes": blockly_episodes,
337
339
  "python_episodes": python_episodes,
338
340
  "locked_levels": locked_levels_ids,
341
+ "locked_worksheet_ids": locked_worksheet_ids,
339
342
  "class": klass,
340
343
  "external_requests_message": external_requests_message,
341
344
  },