diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-04-14 12:54:27 +0200 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-04-18 07:05:52 +0200 |
commit | 8e89dfe1c24540d33b577377af633694ff57f505 (patch) | |
tree | 127b5b495d97a89e88e943470b8a57a2f8ce907f /tests/model_forms | |
parent | 331a460f8f2e4f447b68fba491464b68c9b21fd1 (diff) | |
download | django-8e89dfe1c24540d33b577377af633694ff57f505.tar.gz |
Fixed various tests on MySQL with MyISAM storage engine.
Diffstat (limited to 'tests/model_forms')
-rw-r--r-- | tests/model_forms/models.py | 3 |
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 |