The Python Oracle

Is there any more elegant way to add a value sensitive unique together constraint in Django Model?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: RPG Blues Looping

--

Chapters
00:00 Question
01:44 Accepted answer (Score 2)
02:10 Answer 2 (Score 8)
02:42 Answer 3 (Score 7)
02:59 Thank you

--

Full question
https://stackoverflow.com/questions/1647...

Accepted answer links:
[here]: https://stackoverflow.com/questions/4544...

Answer 2 links:
[Django 2.2]: https://docs.djangoproject.com/en/2.2/re.../
[UniqueConstraint]: https://docs.djangoproject.com/en/2.2/re...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #django #djangomodels #djangodatabase

#avk47