cookbook
cookbook copied to clipboard
Column title for composite key
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.