The if statement in the old clean caused DoesNotExist error if course_mo...

...dule or category was not set. That way, the model forms in Django admin could not display the validation error correctly in the invalid form.