Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#11901 closed (invalid)

Minor mistake in the ModelAdmin.prepopulated_fields docs

Reported by: djm Owned by: nobody
Component: Documentation Version: 1.1
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.prepopulated_fields

2nd paragraph after the code block:

"The generated value is produced by concatenating the values of the source fields, and then by transforming that result into a valid slug (e.g. substituting dashes for spaces)."

I think the words are the wrong way around, as in, to make a slug you substitute spaces for dashes and not vice versa.

Thanks.

Change History (2)

comment:1 by Tim Graham, 15 years ago

Resolution: invalid
Status: newclosed

Nope, for example the slug for "the quick brown fox" would be "the-quick-brown-fox".

comment:2 by djm, 15 years ago

Cc: mail@… removed

I'm not sure how I managed to make that simple English mistake in my head last night but my mind was set in stone that it read incorrectly. It doesn't and I need to go to bed earlier :)

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