mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +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
|
@ -673,12 +673,15 @@ class MainPrepopulatedAdmin(admin.ModelAdmin):
|
|||
inlines = [RelatedPrepopulatedInline1, RelatedPrepopulatedInline2]
|
||||
fieldsets = (
|
||||
(None, {
|
||||
'fields': (('pubdate', 'status'), ('name', 'slug1', 'slug2',),)
|
||||
'fields': (('pubdate', 'status'), ('name', 'slug1', 'slug2', 'slug3'))
|
||||
}),
|
||||
)
|
||||
formfield_overrides = {models.CharField: {'strip': False}}
|
||||
prepopulated_fields = {'slug1': ['name', 'pubdate'],
|
||||
'slug2': ['status', 'name']}
|
||||
prepopulated_fields = {
|
||||
'slug1': ['name', 'pubdate'],
|
||||
'slug2': ['status', 'name'],
|
||||
'slug3': ['name'],
|
||||
}
|
||||
|
||||
|
||||
class UnorderedObjectAdmin(admin.ModelAdmin):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue