mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #25415 -- Fixed invalid models in the test suite.
This commit is contained in:
@@ -80,7 +80,7 @@ class BrokenContainsRelation(StartsWithRelation):
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class SlugPage(models.Model):
|
||||
slug = models.CharField(max_length=20)
|
||||
slug = models.CharField(max_length=20, unique=True)
|
||||
descendants = StartsWithRelation(
|
||||
'self',
|
||||
from_fields=['slug'],
|
||||
|
||||
Reference in New Issue
Block a user