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 ^^
--
Ticket URL: <https://code.djangoproject.com/ticket/29351>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* Attachment "ScreenShot_20180421220051.png" added.
Screenshot of the bug
* type: Bug => Cleanup/optimization
* component: Uncategorized => Documentation
* stage: Unreviewed => Accepted
Comment:
This is expected behavior but it isn't documented.
--
Ticket URL: <https://code.djangoproject.com/ticket/29351#comment:1>
* owner: nobody => Kelly Hogan
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/29351#comment:2>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/9907 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/29351#comment:3>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/29351#comment:4>
Comment (by Tim Graham <timograham@…>):
In [changeset:"02114f9c49a1cad3f7fe86fe36fcda18632ffb7e" 02114f9c]:
{{{
#!CommitTicketReference repository=""
revision="02114f9c49a1cad3f7fe86fe36fcda18632ffb7e"
[2.0.x] Fixed #29351 -- Doc'd that ModelAdmin.prepopulated_fields removes
stop words.
Backport of 9e861859366bfe60b584b7737a706031eed4c0aa from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29351#comment:6>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"9e861859366bfe60b584b7737a706031eed4c0aa" 9e861859]:
{{{
#!CommitTicketReference repository=""
revision="9e861859366bfe60b584b7737a706031eed4c0aa"
Fixed #29351 -- Doc'd that ModelAdmin.prepopulated_fields removes stop
words.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29351#comment:5>