Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#29351 closed Cleanup/optimization (fixed)

Document that ModelAdmin.prepopulated_fields removes stop words

Reported by: ytechCode Owned by: Kelly Hogan
Component: Documentation Version: 2.0
Severity: Normal Keywords: prepopulated_fields, admin.py, slug, auto
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hi,

When I use this :

prepopulated_fields = {'slug': ('title',)}

if I write in the admin dashboard, in the title field something like 'The sun is shinning' the output in the slug field is 'sun-shinning'

PS : Sorry for my bad english

Attachments (1)

ScreenShot_20180421220051.png (6.7 KB ) - added by ytechCode 6 years ago.
Screenshot of the bug

Download all attachments as: .zip

Change History (7)

by ytechCode, 6 years ago

Screenshot of the bug

comment:1 by Tim Graham, 6 years ago

Component: UncategorizedDocumentation
Summary: Some words not detected when using prepolated_fieldsDocument that ModelAdmin.prepopulated_fields removes stop words
Triage Stage: UnreviewedAccepted
Type: BugCleanup/optimization

This is expected behavior but it isn't documented.

comment:2 by Kelly Hogan, 6 years ago

Owner: changed from nobody to Kelly Hogan
Status: newassigned

comment:3 by Kelly Hogan, 6 years ago

Has patch: set

comment:4 by Carlton Gibson, 6 years ago

Triage Stage: AcceptedReady for checkin

comment:5 by Tim Graham <timograham@…>, 6 years ago

Resolution: fixed
Status: assignedclosed

In 9e861859:

Fixed #29351 -- Doc'd that ModelAdmin.prepopulated_fields removes stop words.

comment:6 by Tim Graham <timograham@…>, 6 years ago

In 02114f9c:

[2.0.x] Fixed #29351 -- Doc'd that ModelAdmin.prepopulated_fields removes stop words.

Backport of 9e861859366bfe60b584b7737a706031eed4c0aa from master

Note: See TracTickets for help on using tickets.
Back to Top