[Answered ]-How to put just date from date time in unique constraint in Django

2👍

✅

Well, if you want to use unique_together, then you need a field that just has the date. Easiest thing might be to have two fields — datefield and timefield — instead of a singledatetimefield.

Leave a comment