Answers for "set lable of field django"

0

set lable of field django

def __init__(self, *args, **kwargs):
    super(YourFormSuper, self).__init__(*args, **kwargs)
    self.fields['field_key'].label = "Your custom lable"
Posted by: Guest on March-15-2021

Python Answers by Framework

Browse Popular Code Answers by Language