Can someone help me with this? I try to add a validation like the following:
start_date < end_date
These variables are datetime type. I hope someone already did this validation.
date_start = models.DateTimeField(
verbose_name=_("start date")
)
date_end = models.DateTimeField(
blank=True, null=True, verbose_name=_("end date")
)