Как добавить легенду в форму django

Я пытаюсь добавить легенду к полю формы в моем проекте django. Но столкнулся с некоторыми проблемами, не могу добавить легенду. Любая помощь будет оценена по достоинству.

Form.py

class MyForm3(ModelForm):
    class Meta:
        model = import
        fields = ['date_of_request',
                  'Number_of_units',
                  'Date_of_shipment',
                  'Required_doc',-------------- This should be the legend
                  'doc1',
                  'doc2',
                  ]

models.py

class import(models.Model):

    date_of_request = models.DateField()
    Number_of_units = models.IntegerField()
    Date_of_shipment = models.IntegerField()
    Required_doc = models.CharField(max_length=200)---------- This should be the legend
    doc1 = models.BooleanField()
    doc2 = models.BooleanField()
Вернуться на верх