﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
35689	`LabelCommand`: `label` does not affect the `missing_args_message`	Kamil Paduszyński	Giovanni Fabbretti	"The `missing_args_message` attribute of the `django.core.management.base.LabelCommand` is hard coded using the default value of `label = ""label""`.

I would suggest the following update:

{{{#!python
class LabelCommand(BaseCommand):
    label = ""label""
    missing_args_message = ""Enter at least one %s.""

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        
        self.missing_args_message = (
            (missing_args_message % self.label)
            if (missing_args_message := self.missing_args_message) is not None
            else None
        ) 
}}}

Of course, I am open to refactoring - a single, complex though, conditional assignment allows for avoiding branching.

It can be tested by updating the `test_label_command_no_label` case."	Bug	closed	Core (Management commands)	5.1	Normal	fixed		Kamil Paduszyński	Ready for checkin	1	0	0	0	0	0
