pedagogy: allow search on uv title

This commit is contained in:
Antoine Bartuccio 2019-07-08 00:54:53 +02:00
parent b4b7817baa
commit d03835d737
Signed by: klmp200
GPG Key ID: E7245548C53F904B
3 changed files with 9 additions and 1 deletions

View File

@ -1,2 +1,3 @@
{{ object.code }}
{{ object.manager }}
{{ object.title }}

View File

@ -1,2 +1,3 @@
{{ object.code }}
{{ object.manager }}
{{ object.title }}

View File

@ -620,6 +620,12 @@ class UVSearchTest(TestCase):
response = self.client.get(reverse("pedagogy:guide"), {"search": "p"})
self.assertContains(response, text="PA00")
# Search with UV title
response = self.client.get(
reverse("pedagogy:guide"), {"search": "participation"}
)
self.assertContains(response, text="PA00")
# Search with UV manager
response = self.client.get(reverse("pedagogy:guide"), {"search": "HEYBERGER"})
self.assertContains(response, text="PA00")