How to make Django's DateTimeField optional?
"required" is a valid argument for Django forms. For models, you want the keyword args blank=True
(for the admin) and null=True
(for the database).
Use
due_date = models.DateTimeField(null=True, blank=True)
Check Field Options for more information.