1
0
mirror of https://github.com/django/django.git synced 2025-10-27 23:56:08 +00:00

Refs #36075 -- Used field in pk_fields over field.primary_key.

This commit is contained in:
Sarah Boyce
2025-01-09 13:37:08 +01:00
parent d66137b39b
commit bf7b17d16d
8 changed files with 53 additions and 7 deletions

View File

@@ -56,3 +56,4 @@ class TimeStamped(models.Model):
pk = models.CompositePrimaryKey("id", "created")
id = models.SmallIntegerField(unique=True)
created = models.DateTimeField(auto_now_add=True)
text = models.TextField(default="", blank=True)