user26 user26 - 24 days ago 7
Python Question

Can i add help text in django model fields

I have the Student detail page where have the all student data shown in log nested format.

Now in the form i know i can add the help text . But now the manager wants that when we show the detail page then there should be hover over help on each field.

Now i am confused where should i enter 50-100 words help text for each tables in 5-6 tables

This is how i used in forms.

student_number = forms.CharField(
required=False, max_length=64, label='Student Number',
help_text='Unique identifier for the student ')

Answer

Yes you can! Just like your form, you can add help_text to your model fields.