The verbose_name=_ ('codename') of Field in django models?

problem description

as shown in the title, there is some confusion when looking at the source code of the django framework. I don"t quite understand. It"s hard to take a look at it.

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

https://github.com/billychou/.

class Permission(models.Model):
    """
    """
    name = models.CharField(_("name"), max_length=255)
    content_type = models.ForeignKey(
        ContentType,
        models.CASCADE,
        verbose_name=_("content type"),
    )
    codename = models.CharField(_("codename"), max_length=100)
    objects = PermissionManager()

as mentioned above

codename = models.CharField (_ ("codename"), max_length=100)

Apr.02,2021

is so messy. What do you want to ask?
if it is an underscore, it is a function for translation

Menu