[Django]-Django validate field based on value from another field

5👍

Form fields are cleaned in the order they defined in the form. So you just need to put is_private field before the public_room in the fields list.

Leave a comment