Alice wrote:

unique_together = (("driver", "restaurant"),)

... and I don't think this is a db-level solution ..
At least in Postgres it is db-level. It produces something like this in table definition:

CONSTRAINT polls_answers_driver_key UNIQUE (driver,restaurant)

Don't know about other databases though...

Reply via email to