[Answer]-Django unique_together with a specifc filter (like: somefield=somevalue)

1👍

✅

unique_together just tells Django to create unique index for the given fields. Uniqueness is checked by the database not by Django. So simple answer is NO, but if you tell more about your model there could be a good way to organize your data…

Leave a comment