cookbook icon indicating copy to clipboard operation
cookbook copied to clipboard

Column title for composite key

Open lfpertile opened this issue 3 years ago • 0 comments

It would be nice if CompositeKey column names refer to model fields instead of database column names. In a legacy database name could be far from today standars. When I tried to use I had to use real column name in CompositeKey, if I use my "new" model name (Django standard) it complains because the column doesn't exist. So I used database column name in model name which makes less clear my code because I'm referring to a related entity by its foreign key instead of my "pretty Django" name.

lfpertile avatar Apr 29 '22 13:04 lfpertile