How to add legend in django form

I am trying to add legend to the form field in my django project. But facing some issues unable to add the legend. Any kind of help will be appreciated.

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()
Back to Top