Friday, April 21, 2017

Re: First models.py needs tuning

On Fri, 21 Apr 2017, Michal Petrucha wrote:

> For the foreseeable future, though, I'd strongly recommend that you save
> yourself a lot of trouble, and just add a surrogate primary key field to
> all your tables and models.

Michal,

I'll let Django do this. However, should I still specify unique_together()
for the columns that would have comprised the PK?

Regards,

Rich

No comments:

Post a Comment