Apply suggestion to pedagogy/views.py

Status Job ID Name Coverage
  Test
passed #2475
black

00:01:41

passed #2474
test

00:28:32

63.0%