I have a model with a foreign key called "title". I want to restrict each user to only be able to create an object with each title once, so that they can't have multiple objects with the same title. Does anybody know how I can achieve this?
I have tried to add "unique_together" like this in my model but it does not work.
class Meta:
unique_together = ('user', 'title')