From 8e89dfe1c24540d33b577377af633694ff57f505 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Thu, 14 Apr 2022 12:54:27 +0200 Subject: Fixed various tests on MySQL with MyISAM storage engine. --- tests/model_forms/models.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/model_forms') 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 -- cgit v1.3