https://www.geeksforgeeks.org/verbose_name-django-built-in-field-validation/
mostly used in admin.py
Enter the following code into models.py file of geeks app. We will be using CharField for experimenting for all field options.
After running makemigrations and migrate on Django and rendering the above model, let us check the display name for geeks_field.

Now let us modify this using verbose_name attribute. change models.py to
Since models.py is modified run makemigrations and migrate again on the project. Open admin interface and check the name of that field again, it is changes to “Geeksforgeeks”.
No comments:
Post a Comment