Skip to content

avoid explicit references to primary key DB field

Bengfort requested to merge avoid-pk-db-field into main

your code should never have to deal with the database column name, unless you write custom SQL. You’ll always deal with the field names of your model object. https://docs.djangoproject.com/en/3.2/ref/models/fields/#database-representation

Merge request reports