Opened 5 years ago

Closed 5 years ago

Last modified 5 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: UI/UX:

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 Changed 5 years ago by timo

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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

comment:2 Changed 5 years ago by djm

  • 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