Complete the code to set the maximum length of a CharField to 100.
name = models.CharField(max_length=[1])The max_length option sets the maximum number of characters allowed in a CharField. Here, it should be 100.
Complete the code to allow the database field to store NULL values.
age = models.IntegerField(null=[1])null with blank.The null=True option allows the database to store NULL values for this field.
Fix the error in the code to allow the form to accept empty input for the field.
email = models.EmailField(blank=[1])blank=None which is invalid.blank with null.The blank=True option allows the form to accept empty input for this field.
Fill both blanks to set a default value and allow blank input for a CharField.
status = models.CharField(max_length=20, default=[1], blank=[2])
The default option sets the default value to 'pending'. The blank=True option allows the form to accept empty input.
Fill all three blanks to create a TextField that allows NULL in database, blank input in forms, and has a default empty string.
description = models.TextField(null=[1], blank=[2], default=[3])
null=True allows NULL in the database. blank=True allows empty input in forms. default='' sets the default to an empty string.