Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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",}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Add #text #Django #model #forms
ADD COMMENT
Topic
Name
4+1 =