summaryrefslogtreecommitdiff
path: root/tests/admin_views/admin.py
diff options
context:
space:
mode:
authorEdward Henderson <kutenai@me.com>2015-04-15 16:28:49 -0600
committerTim Graham <timograham@gmail.com>2015-07-17 13:48:58 -0400
commitf8cc464452f495fce2a3d6f7494396c8f798a1e6 (patch)
tree61049a8351e327b59c98341f98dacda0e8186be2 /tests/admin_views/admin.py
parentadffff79a36f7de30f438915c492e475e17025f6 (diff)
downloaddjango-f8cc464452f495fce2a3d6f7494396c8f798a1e6.tar.gz
Fixed #16501 -- Added an allow_unicode parameter to SlugField.
Thanks Flavio Curella and Berker Peksag for the initial patch.
Diffstat (limited to 'tests/admin_views/admin.py')
-rw-r--r--tests/admin_views/admin.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/admin_views/admin.py b/tests/admin_views/admin.py
index 1def206df7..367ac3df62 100644
--- a/tests/admin_views/admin.py
+++ b/tests/admin_views/admin.py
@@ -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):