Primary key attribute usually assigned by the database when the instance saved first time. So you can use something like if instance.pk is None
Primary key attribute usually assigned by the database when the instance saved first time. So you can use something like if instance.pk is None