verbose_name - Django Built-in Field Validation Last Updated : 13 Feb, 2020 Comments Improve Suggest changes Like Article Like Report Built-in Field Validations in Django models are the validations that come predefined to all Django fields. Every field comes in with built-in validations from Django validators. One can also add more built-in field validations for applying or removing certain constraints on a particular field. verbose_name is a human-readable name for the field. If the verbose name isn’t given, Django will automatically create it using the field’s attribute name, converting underscores to spaces. This attribute in general changes the field name in admin interface. Syntax - field_name = models.Field(verbose_name = "name") Django Built-in Field Validation verbose_name Explanation Illustration of verbose_name using an Example. Consider a project named geeksforgeeks having an app named geeks. Refer to the following articles to check how to create a project and an app in Django. How to Create a Basic Project using MVT in Django? How to Create an App in Django ? Enter the following code into models.py file of geeks app. We will be using CharField for experimenting for all field options. Python3 from django.db import models from django.db.models import Model # Create your models here. class GeeksModel(Model): geeks_field = models.CharField( max_length = 200, ) 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 Python3 from django.db import models from django.db.models import Model # Create your models here. class GeeksModel(Model): geeks_field = models.CharField( max_length = 200, verbose_name = "Geeksforgeeks" ) 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". You can see the modified image. Therefore, verbose_name modifies the field name. More Built-in Field Validations Field Options Description Null If True, Django will store empty values as NULL in the database. Default is False. Blank If True, the field is allowed to be blank. Default is False. db_column The name of the database column to use for this field. If this isn’t given, Django will use the field’s name. Default The default value for the field. This can be a value or a callable object. If callable it will be called every time a new object is created. help_text Extra “help” text to be displayed with the form widget. It’s useful for documentation even if your field isn’t used on a form. primary_key If True, this field is the primary key for the model. editable If False, the field will not be displayed in the admin or any other ModelForm. They are also skipped during model validation. Default is True. error_messages The error_messages argument lets you override the default messages that the field will raise. Pass in a dictionary with keys matching the error messages you want to override. help_text Extra “help” text to be displayed with the form widget. It’s useful for documentation even if your field isn’t used on a form. verbose_name A human-readable name for the field. If the verbose name isn’t given, Django will automatically create it using the field’s attribute name, converting underscores to spaces. validators A list of validators to run for this field. See the validators documentation for more information. Unique If True, this field must be unique throughout the table. Comment More infoAdvertise with us Next Article verbose_name - Django Built-in Field Validation N NaveenArora Follow Improve Article Tags : Python Python Django Django-models Practice Tags : python Similar Reads Field Validations and Built-In Fields - Django Models Field validations in Django help make sure the data you enter into your database is correct and follows certain rules. Django automatically checks the data based on the type of field you use, so you donât have to write extra code to validate it yourself.Django provides built-in validations for every 3 min read null=True - Django Built-in Field Validation Built-in Field Validations in Django models are the default validations that come predefined to all Django fields. Every field comes in with built-in validations from Django validators. One can also add more built-in field validations for applying or removing certain constraints on a particular fiel 4 min read blank=True - Django Built-in Field Validation Built-in Field Validations in Django models are the default validations that come predefined to all Django fields. Every field comes in with built-in validations from Django validators. One can also add more built-in field validations for applying or removing certain constraints on a particular fiel 4 min read default - Django Built-in Field Validation Built-in Field Validations in Django models are the validations that come predefined to all Django fields. Every field comes in with built-in validations from Django validators. One can also add more built-in field validations for applying or removing certain constraints on a particular field. defau 3 min read editable=False - Django Built-in Field Validation Built-in Field Validations in Django models are the validations that come predefined to all Django fields. Every field comes in with built-in validations from Django validators. One can also add more built-in field validations for applying or removing certain constraints on a particular field. edita 4 min read error_messages - Django Built-in Field Validation Built-in Field Validations in Django models are the validations that come predefined to all Django fields. Every field comes in with built-in validations from Django validators. One can also add more built-in field validations for applying or removing certain constraints on a particular field. error 4 min read help_text - Django Built-in Field Validation Built-in Field Validations in Django models are the validations that come predefined to all Django fields. Every field comes in with built-in validations from Django validators. One can also add more built-in field validations for applying or removing certain constraints on a particular field. help_ 4 min read primary_key - Django Built-in Field Validation Built-in Field Validations in Django models are the default validations that come predefined to all Django fields. Every field comes in with built-in validations from Django validators. One can also add more built-in field validations for applying or removing certain constraints on a particular fiel 4 min read unique=True - Django Built-in Field Validation Built-in Field Validations in Django models are the validations that come predefined to all Django fields. Every field comes in with built-in validations from Django validators. One can also add more built-in field validations for applying or removing certain constraints on a particular field. uniqu 3 min read verbose_name - Django Built-in Field Validation Built-in Field Validations in Django models are the validations that come predefined to all Django fields. Every field comes in with built-in validations from Django validators. One can also add more built-in field validations for applying or removing certain constraints on a particular field. verbo 3 min read Like