I just took over a Django project from another developer and am trying to understand what he did.
If someone could let me know if I understand correctly and point me in the right direction that would be great.
At the moment the models look like this (simplified):
If you change the
ForeignKeys, then you will be able to select the same address for multiple users and providers.
class Provider: address=models.ForeignKey(Address) class User: address=models.ForeignKey(Address)
You will need to create a migration and run it to drop the unique constraints in the database. A data migration shouldn't be required.