Hi Everyone
I want to know if a ModelForm is better than a Form to write a form for a normal user that has complicated form validation and more fields than a Model. Which one is more professional?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ModelForms are just a matter of convenience: if your form can be easily be mapped to model, use a ModelForm. Validation is basically the same forModelForms and regularForms, but usingModelForms will save you the hassle of writing the some of the validation rules by hand.