How to restrict overlapping datetimes in django model at DB level using CheckConstraint

后端 未结 0 1779
时光说笑
时光说笑 2021-01-21 08:07

I have the following fields in my Model:

class Event(models.Model):
    starts = models.DateTimeField()
    ends = models.DateTimeField()
    

I

相关标签:
回答
  • 消灭零回复
提交回复
热议问题