I was looking to do something like this, but for a Django management command: Python argparse: How to insert newline in the help text?
help_text attribute is used to display the “help” text along with the field in form in admin interface or ModelForm. It's useful for documentation even if your field isn't used on a form. For example, you can define the pattern of date to be taken as input in the help_text of DateField.
django-admin is Django's command-line utility for administrative tasks. This document outlines all it can do. In addition, manage.py is automatically created in each Django project.
You can insert the new line in help_text by entering the HTML
tag
For e.g.
name=models.Charfield(max_length=10, help_text="Enter First name or <br/> Enter full name")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With