Can I make an admin field not required in Django without creating a form? Can I make an admin field not required in Django without creating a form? python python

Can I make an admin field not required in Django without creating a form?


Just Put

blank=True

in your model i.e.:

rushing_attempts = models.CharField(        max_length = 100,        verbose_name = "Rushing Attempts",        blank=True        )


Use blank=True, null=True

class PlayerStat(models.Model):    player = models.ForeignKey(Player)    rushing_attempts = models.CharField(        max_length = 100,        verbose_name = "Rushing Attempts",        blank=True,        null=True        )    rushing_yards = models.CharField(        max_length = 100,        verbose_name = "Rushing Yards",        blank=True,        null=True        )    rushing_touchdowns = models.CharField(        max_length = 100,        verbose_name = "Rushing Touchdowns",        blank=True,        null=True        )    passing_attempts = models.CharField(        max_length = 100,        verbose_name = "Passing Attempts",        blank=True,        null=True        )