how to refer to primary key inside a model django code example
Example 1: primary key django model
class Garden(models.Model):
garden_id = models.IntegerField(primary_key=True)
Example 2: django models
Models in Django are classes that represent data base tables.