Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#27739 closed Cleanup/optimization (fixed)

Document LabelCommand's `label` attribute

Reported by: Ed Morley Owned by: Ed Morley
Component: Documentation Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

LabelCommand has a label attribute that can be used to adjust the name used in the usage docs and help text:
https://github.com/django/django/blob/46e0335583661507f1c10adb97fbd9dcfbb9b787/django/core/management/base.py#L503

However this isn't documented on:
https://docs.djangoproject.com/en/dev/howto/custom-management-commands/#django.core.management.LabelCommand

I'll open a PR shortly :-)

Change History (3)

comment:1 by Ed Morley, 8 years ago

Has patch: set
Owner: changed from emorley@… to Ed Morley

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

Resolution: fixed
Status: assignedclosed

In 0ecc3fc4:

[1.10.x] Fixed #27739 -- Documented LabelCommand.label.

Backport of 44cce3ed00afe7a404e9f6cba0f6292223c7fe0a from master

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

In 44cce3e:

Fixed #27739 -- Documented LabelCommand.label.

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