pedagogy: fix typo for AUTUMN_AND_SPRING

This commit is contained in:
2019-07-05 16:40:02 +02:00
parent 205f93569a
commit 3376f4dfb4
5 changed files with 7 additions and 7 deletions

View File

@ -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,

View File

@ -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",

View File

@ -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