diff --git a/aleksis/apps/cursus/schema.py b/aleksis/apps/cursus/schema.py
index 33ed506581ae9c5e1d2e5b512818769988a61713..a733f531c86763dac656949452b08cbeb3b83d20 100644
--- a/aleksis/apps/cursus/schema.py
+++ b/aleksis/apps/cursus/schema.py
@@ -190,8 +190,8 @@ class CreateSchoolClassMutation(DjangoBatchCreateMutation):
         group_type, __ = GroupType.objects.managed_by_app(app_label).get_or_create(
             name="School class", managed_by_app_label=app_label
         )
-        for schoolClass in input:
-            schoolClass["group_type"] = group_type.pk
+        for school_class in input:
+            school_class["group_type"] = group_type.pk
         return input