how to refer to primary key inside django model code example Example: django models Models in Django are classes that represent data base tables.