mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +00:00
Fixed #16501 -- Added an allow_unicode parameter to SlugField.
Thanks Flavio Curella and Berker Peksag for the initial patch.
This commit is contained in:
parent
adffff79a3
commit
f8cc464452
26 changed files with 223 additions and 46 deletions
|
|
@ -86,6 +86,10 @@ class BigS(models.Model):
|
|||
s = models.SlugField(max_length=255)
|
||||
|
||||
|
||||
class UnicodeSlugField(models.Model):
|
||||
s = models.SlugField(max_length=255, allow_unicode=True)
|
||||
|
||||
|
||||
class SmallIntegerModel(models.Model):
|
||||
value = models.SmallIntegerField()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue