class Post(models.Model):
ref_no = models.CharField(max_length=6, null=True, blank=True, unique=True)
select_section = models.CharField(max_length=20, choices=Sections)
incident = models.TextField(max_length=500, help_text="Mention the incident in brief here.")
severity = models.CharField(max_length=20, choices=Severity)
date_posted = models.DateField(auto_now_add=True, auto_now=False, blank=True)
confirm_closing = models.BooleanField(default=False, help_text="Please confirm to close the Ticket")
comment = models.TextField(max_length=500, default="Issue resolved and this Ticket has been closed successfully!")
date_closed = models.DateField(null=True, blank=False, auto_now_add=False, auto_now=False)
username = models.ForeignKey(User, on_delete=models.CASCADE)
这是我的模型在这里我希望我的 min_date for date_closed字段应该大于我的模型的date_posted字段......请让我知道该怎么做......提前谢谢