summaryrefslogtreecommitdiff
path: root/tests/model_forms
diff options
context:
space:
mode:
Diffstat (limited to 'tests/model_forms')
-rw-r--r--tests/model_forms/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/model_forms/models.py b/tests/model_forms/models.py
index a6f306c5b2..b6da15f48a 100644
--- a/tests/model_forms/models.py
+++ b/tests/model_forms/models.py
@@ -21,6 +21,9 @@ class Category(models.Model):
slug = models.SlugField(max_length=20)
url = models.CharField("The URL", max_length=40)
+ class Meta:
+ ordering = ("pk",)
+
def __str__(self):
return self.name