Opened 6 years ago

Closed 6 years ago

#14957 closed (wontfix)

doc nit: slug_field not required

Reported by: CarlFK Owned by: nobody
Component: Documentation Version: 1.2
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/generic-views/#django-views-generic-list-detail-object-detail

seems "and slug_field" is not required given " By default, slug_field is 'slug'."

"""
Either object_id or (slug and slug_field) is required.

If you provide object_id, it should be the value of the primary-key field for the object being displayed on this page.

Otherwise, slug should be the slug of the given object, and slug_field should be the name of the slug field in the QuerySet's model. By default, slug_field is 'slug'.
"""

Change History (1)

comment:1 Changed 6 years ago by Tim Graham

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Resolution: wontfix
Status: newclosed

The current wording makes sense to me -- it shows that slug and slug_field are used together if object_id isn't specified. Thanks for the suggestion though.

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