mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-25 02:24:26 +00:00
pedagogy: fix typo for AUTUMN_AND_SPRING
This commit is contained in:
parent
205f93569a
commit
3376f4dfb4
@ -1578,7 +1578,7 @@ def migrate_pedagogy():
|
||||
"closed": "CLOSED",
|
||||
"A": "AUTUMN",
|
||||
"P": "SPRING",
|
||||
"AP": "AUTOMN_AND_SPRING",
|
||||
"AP": "AUTUMN_AND_SPRING",
|
||||
}
|
||||
|
||||
def department_conversion(department):
|
||||
|
@ -1,5 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.20 on 2019-06-19 23:05
|
||||
# Generated by Django 1.11.20 on 2019-07-05 14:32
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.conf import settings
|
||||
@ -67,7 +67,7 @@ class Migration(migrations.Migration):
|
||||
("CLOSED", "Closed"),
|
||||
("AUTUMN", "Autumn"),
|
||||
("SPRING", "Spring"),
|
||||
("AUTOMN_AND_SPRING", "Autumn and spring"),
|
||||
("AUTUMN_AND_SPRING", "Autumn and spring"),
|
||||
],
|
||||
default="CLOSED",
|
||||
max_length=20,
|
||||
|
@ -632,7 +632,7 @@ class UVSearchTest(TestCase):
|
||||
self.assertContains(response, text="PA00")
|
||||
|
||||
response = self.client.get(
|
||||
reverse("pedagogy:guide"), {"semester": "AUTOMN_AND_SPRING"}
|
||||
reverse("pedagogy:guide"), {"semester": "AUTUMN_AND_SPRING"}
|
||||
)
|
||||
self.assertContains(response, text="PA00")
|
||||
|
||||
@ -679,7 +679,7 @@ class UVSearchTest(TestCase):
|
||||
"code": "PA00",
|
||||
"author": 0,
|
||||
"credit_type": "OM",
|
||||
"semester": "AUTOMN_AND_SPRING",
|
||||
"semester": "AUTUMN_AND_SPRING",
|
||||
"language": "FR",
|
||||
"credits": 5,
|
||||
"department": "HUMA",
|
||||
|
@ -184,7 +184,7 @@ class UVListView(CanViewMixin, CanCreateUVFunctionMixin, ListView):
|
||||
semester = self.request.GET.get("semester", None)
|
||||
if semester:
|
||||
if semester in ["AUTUMN", "SPRING"]:
|
||||
additional_filters["semester__in"] = [semester, "AUTOMN_AND_SPRING"]
|
||||
additional_filters["semester__in"] = [semester, "AUTUMN_AND_SPRING"]
|
||||
else:
|
||||
additional_filters["semester"] = semester
|
||||
|
||||
|
@ -421,7 +421,7 @@ SITH_PEDAGOGY_UV_SEMESTER = [
|
||||
("CLOSED", _("Closed")),
|
||||
("AUTUMN", _("Autumn")),
|
||||
("SPRING", _("Spring")),
|
||||
("AUTOMN_AND_SPRING", _("Autumn and spring")),
|
||||
("AUTUMN_AND_SPRING", _("Autumn and spring")),
|
||||
]
|
||||
|
||||
SITH_PEDAGOGY_UV_LANGUAGE = [
|
||||
|
Loading…
Reference in New Issue
Block a user