Fix deprecated behavior in CourseAdminForm