How to make Required: boolean field in model Django
问题 I have a model with a field called in is_student and is_teacher Student and Teacher forms is_teacher = models.BooleanField('teacher status', default=False) is_student = models.BooleanField('student status', default=False) I want to make sure this field is: Always Checked by the user True *Required Currently: is_teacher in TeacherApplications Model When unchecked - it saved 0 to the form and continues. (Not good) When checked gives me this error: ValueError at /register/teacher invalid literal