Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What is the difference between a Form and a ModelForm?

  1. A A ModelForm derives its fields from a model and can save instances
  2. B A Form can only be used for GET requests
  3. C A ModelForm cannot validate data
  4. D There is no difference
Answer

A ModelForm derives its fields from a model and can save instances

ModelForm generates fields from the model and provides save(). Always list fields explicitly rather than using __all__, which silently exposes new model fields.

All Django MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as