A

Admin • 802.91K Points
Coach

Q. What is the purpose of `null=True` in a Django model field?

  • (A) Sets default value to None
  • (B) Allows storing NULL in database
  • (C) Allows blank in forms
  • (D) Makes field mandatory
  • Correct Answer - Option(B)
  • Views: 8
  • Filed under category Django
  • Hashtags:

Explanation by: Admin
`null=True` allows the field to store NULL in the database.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.