Hi,
Just saw this on the internet :
class Name(models.Model):
amount = models.FloatField(_("Amount"), null=False, blank=False)
i was wondering what this ‘_(“Amount”)’ does?
Hi,
Just saw this on the internet :
class Name(models.Model):
amount = models.FloatField(_("Amount"), null=False, blank=False)
i was wondering what this ‘_(“Amount”)’ does?
The underscore is a valid python identifier.
If you saw that line written as:
How would you interpret it? (What would the abc
represent?)