Answers for "Add help text in Django model forms"

0

Add help text in Django model forms

class PupilForm(forms.ModelForm):

  class Meta:
    model = Pupil

    fields = ['student_number',]
    labels = {'student_number': "Student Number",}
    help_texts = {'student_number': "Unique identifier for the student",}
Posted by: Guest on July-30-2021

Python Answers by Framework

Browse Popular Code Answers by Language