mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 11:59:23 +00:00
pedagogy: fix typo for AUTUMN_AND_SPRING
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user