mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +00:00
Fixed various tests on MySQL with MyISAM storage engine.
This commit is contained in:
parent
331a460f8f
commit
8e89dfe1c2
8 changed files with 54 additions and 34 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue