codeforlife-portal 7.3.1__py2.py3-none-any.whl → 7.3.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.
- {codeforlife_portal-7.3.1.dist-info → codeforlife_portal-7.3.3.dist-info}/METADATA +2 -2
- {codeforlife_portal-7.3.1.dist-info → codeforlife_portal-7.3.3.dist-info}/RECORD +8 -8
- portal/__init__.py +1 -1
- portal/templates/portal/partials/header.html +6 -6
- portal/views/teacher/teach.py +6 -5
- {codeforlife_portal-7.3.1.dist-info → codeforlife_portal-7.3.3.dist-info}/LICENSE.md +0 -0
- {codeforlife_portal-7.3.1.dist-info → codeforlife_portal-7.3.3.dist-info}/WHEEL +0 -0
- {codeforlife_portal-7.3.1.dist-info → codeforlife_portal-7.3.3.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: codeforlife-portal
|
|
3
|
-
Version: 7.3.
|
|
3
|
+
Version: 7.3.3
|
|
4
4
|
Classifier: Programming Language :: Python
|
|
5
5
|
Classifier: Programming Language :: Python :: 3.12
|
|
6
6
|
Classifier: Framework :: Django
|
|
@@ -21,7 +21,7 @@ Requires-Dist: django-classy-tags==2.0.0
|
|
|
21
21
|
Requires-Dist: libsass==0.23.0
|
|
22
22
|
Requires-Dist: phonenumbers==8.12.12
|
|
23
23
|
Requires-Dist: more-itertools==8.7.0
|
|
24
|
-
Requires-Dist: cfl-common==7.3.
|
|
24
|
+
Requires-Dist: cfl-common==7.3.3
|
|
25
25
|
Requires-Dist: django-ratelimit==3.0.1
|
|
26
26
|
Requires-Dist: django-preventconcurrentlogins==0.8.2
|
|
27
27
|
Requires-Dist: django-csp==3.7
|
|
@@ -107,7 +107,7 @@ example_project/portal_test_settings.py,sha256=NfLY72mt1LR2c0_kxF-Yg5pCm2vQ52ece
|
|
|
107
107
|
example_project/settings.py,sha256=Smpr5FHAaQQhXPgh6-Zsy-jnH5_ZV9htPTWJWlGqptI,5575
|
|
108
108
|
example_project/urls.py,sha256=3SsP5jvPAXV5xmduka4zbSZB5PbXggjsalu1ojY5KIo,434
|
|
109
109
|
example_project/wsgi.py,sha256=U1W6WzZxZaIdYZ5tks7w9fqp5WS5qvn2iThsVcskrWw,829
|
|
110
|
-
portal/__init__.py,sha256=
|
|
110
|
+
portal/__init__.py,sha256=0toPzfNzgKGz4jRa-Ox6B7nbLNoBzmpwgBujvzkybx0,22
|
|
111
111
|
portal/admin.py,sha256=on1-zNRnZvf2cwBN6GVRVYRhkaksrCgfzX8XPWtkvz8,6062
|
|
112
112
|
portal/app_settings.py,sha256=DhWLQOwM0zVOXE3O5TNKbMM9K6agfLuCsHOdr1J7xEI,651
|
|
113
113
|
portal/backends.py,sha256=2Dss6_WoQwPuDzJUF1yEaTQTNG4eUrD12ujJQ5cp5Tc,812
|
|
@@ -469,7 +469,7 @@ portal/templates/portal/partials/card_list.html,sha256=yHcp4oc0WRG9H6Ek871VCHbwY
|
|
|
469
469
|
portal/templates/portal/partials/character_list.html,sha256=SnNFHzbIkOSaiRPIvSdplEf_B87UYgJ1pOvMltNDxLE,415
|
|
470
470
|
portal/templates/portal/partials/delete_popup.html,sha256=nEhnwgnmKoFzb6LlCwdX973Em9bVOFh6MON36RPteYs,1275
|
|
471
471
|
portal/templates/portal/partials/footer.html,sha256=V6xKYyhPoqSRUL0HQu7OB9vKVJWun8Q0PUGa5Dbdyl4,4922
|
|
472
|
-
portal/templates/portal/partials/header.html,sha256=
|
|
472
|
+
portal/templates/portal/partials/header.html,sha256=HRrfwyUFhuuTKSp0bzFXsNwuQ_cBLyxnvw2bgV1jMbw,20142
|
|
473
473
|
portal/templates/portal/partials/headline.html,sha256=xKb-WtkT0FyQqT0smyNSKkXFvU7KQ5Czad8ca6YKQg4,89
|
|
474
474
|
portal/templates/portal/partials/hero_card.html,sha256=UN5hyxrw-McuXFsDzPBIECB9yGrv9VjsFf8SEBowwXc,786
|
|
475
475
|
portal/templates/portal/partials/info_popup.html,sha256=gzffd5MBVb7p2hGQuZMNDudThrRgs847hCu9ziT9uLE,566
|
|
@@ -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=8WglspwuHF__2LtoX5_XvoW1ulICSupjKv--MtjrvJk,25714
|
|
629
|
-
portal/views/teacher/teach.py,sha256=
|
|
629
|
+
portal/views/teacher/teach.py,sha256=MxheM_kxt_K1J7jEWlim8yZonnp63iYUTw5dCaLscLI,37056
|
|
630
630
|
portal/views/two_factor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
631
631
|
portal/views/two_factor/core.py,sha256=O_wcBeFqdPYSGNGv-pT_vbs5-Dj1Z-Jfkd6f9-E5yZI,760
|
|
632
632
|
portal/views/two_factor/form.py,sha256=lnHNKI-BMlpncTuW3zUzjPaJJNuEra2I_nOam0eOKFY,257
|
|
633
633
|
portal/views/two_factor/profile.py,sha256=tkl_ludo8arMtd5LKNmohM66vpC_YQiP-0nspTSJiJ4,383
|
|
634
|
-
codeforlife_portal-7.3.
|
|
635
|
-
codeforlife_portal-7.3.
|
|
636
|
-
codeforlife_portal-7.3.
|
|
637
|
-
codeforlife_portal-7.3.
|
|
638
|
-
codeforlife_portal-7.3.
|
|
634
|
+
codeforlife_portal-7.3.3.dist-info/LICENSE.md,sha256=9AbRlCDqD2D1tPibimysFv3zg3AIc49-eyv9aEsyq9w,115
|
|
635
|
+
codeforlife_portal-7.3.3.dist-info/METADATA,sha256=ZnS_f1ciHft66Np8pW27jVf4WWyxwYGSYZyTNI8sMHo,3317
|
|
636
|
+
codeforlife_portal-7.3.3.dist-info/WHEEL,sha256=fS9sRbCBHs7VFcwJLnLXN1MZRR0_TVTxvXKzOnaSFs8,110
|
|
637
|
+
codeforlife_portal-7.3.3.dist-info/top_level.txt,sha256=8e5pdsuIoTqEAMqpelHBjGjLbffcBtgOoggmd2q7nMw,41
|
|
638
|
+
codeforlife_portal-7.3.3.dist-info/RECORD,,
|
portal/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "7.3.
|
|
1
|
+
__version__ = "7.3.3"
|
|
@@ -157,19 +157,19 @@
|
|
|
157
157
|
<li class="dropdown-menu__option">
|
|
158
158
|
<a id="teacher_login_button" class="button--regular" aria-labelledby="Teacher" href="{% url 'teacher_login' %}">
|
|
159
159
|
<div class="dropdown-menu__option__text">Teacher</div>
|
|
160
|
-
<span class="material-icons-outlined">chevron_right</span>
|
|
160
|
+
<span data-nosnippet class="material-icons-outlined">chevron_right</span>
|
|
161
161
|
</a>
|
|
162
162
|
</li>
|
|
163
163
|
<li class="dropdown-menu__option">
|
|
164
164
|
<a id="student_login_button" class="button--regular" aria-labelledby="Student" href="{% url 'student_login_access_code' %}">
|
|
165
165
|
<div class="dropdown-menu__option__text">Student</div>
|
|
166
|
-
<span class="material-icons-outlined">chevron_right</span>
|
|
166
|
+
<span data-nosnippet class="material-icons-outlined">chevron_right</span>
|
|
167
167
|
</a>
|
|
168
168
|
</li>
|
|
169
169
|
<li class="dropdown-menu__option">
|
|
170
170
|
<a id="independent_login_button" class="button--regular" aria-labelledby="Independent" href="{% url 'independent_student_login' %}">
|
|
171
171
|
<div class="dropdown-menu__option__text">Independent</div>
|
|
172
|
-
<span class="material-icons-outlined">chevron_right</span>
|
|
172
|
+
<span data-nosnippet class="material-icons-outlined">chevron_right</span>
|
|
173
173
|
</a>
|
|
174
174
|
</li>
|
|
175
175
|
</ul>
|
|
@@ -243,11 +243,11 @@
|
|
|
243
243
|
data-toggle="collapse" data-target="#login-tabs">Log in</button>
|
|
244
244
|
<div id="login-tabs" class="collapse">
|
|
245
245
|
<a class="button button--menu__item button--menu__item__sub"
|
|
246
|
-
href="{% url 'teacher_login' %}">Teacher<span class="material-icons-outlined md-32">chevron_right</span></a>
|
|
246
|
+
href="{% url 'teacher_login' %}">Teacher<span data-nosnippet class="material-icons-outlined md-32">chevron_right</span></a>
|
|
247
247
|
<a class="button button--menu__item button--menu__item__sub"
|
|
248
|
-
href="{% url 'student_login_access_code' %}">Student<span class="material-icons-outlined md-32">chevron_right</span></a>
|
|
248
|
+
href="{% url 'student_login_access_code' %}">Student<span data-nosnippet class="material-icons-outlined md-32">chevron_right</span></a>
|
|
249
249
|
<a class="button button--menu__item button--menu__item__sub"
|
|
250
|
-
href="{% url 'independent_student_login' %}">Independent<span class="material-icons-outlined md-32">chevron_right</span></a>
|
|
250
|
+
href="{% url 'independent_student_login' %}">Independent<span data-nosnippet class="material-icons-outlined md-32">chevron_right</span></a>
|
|
251
251
|
</div>
|
|
252
252
|
<a class="button button--menu__item" href="{% url 'teach' %}">Teacher
|
|
253
253
|
<span class="material-icons-outlined md-32">chevron_right</span></a>
|
portal/views/teacher/teach.py
CHANGED
|
@@ -868,12 +868,13 @@ def teacher_move_students_to_class(request, access_code):
|
|
|
868
868
|
|
|
869
869
|
|
|
870
870
|
def check_if_move_authorised(request, old_class, new_class):
|
|
871
|
-
|
|
872
|
-
if request.user.new_teacher != old_class.teacher:
|
|
873
|
-
raise Http404
|
|
871
|
+
teacher = request.user.new_teacher
|
|
874
872
|
|
|
875
|
-
# check teacher
|
|
876
|
-
|
|
873
|
+
# check teacher has permission to edit old_class and that both classes
|
|
874
|
+
# are in the same school
|
|
875
|
+
if (
|
|
876
|
+
not teacher.is_admin and teacher != old_class.teacher
|
|
877
|
+
) or teacher.school != new_class.teacher.school:
|
|
877
878
|
raise Http404
|
|
878
879
|
|
|
879
880
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|