1๐
โ
you can add a unique_together
constraint to make it so every address and user combination has to be unique
https://docs.djangoproject.com/en/dev/ref/models/options/#unique-together
unique_together = ('buildingaddress', 'author')
๐คdm03514
Source:stackexchange.com