1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed various tests on MySQL with MyISAM storage engine.

This commit is contained in:
Mariusz Felisiak
2022-04-14 12:54:27 +02:00
parent 331a460f8f
commit 8e89dfe1c2
8 changed files with 54 additions and 34 deletions

View File

@@ -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