#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 , 9 years ago
| Has patch: | set |
|---|---|
| Owner: | changed from to |
comment:2 by , 9 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
In 0ecc3fc4: