On 1/9/07, chasfs <[EMAIL PROTECTED]> wrote: > > I was looking at django.contrib.auth.models and noticed _ in front of > the first parameter, e.g. > first_name = models.CharField(_('first name'), maxlength=30, > blank=True) > > What does that mean/do? >
See line 5 of that file: from django.utils.translation import gettext_lazy as _ _('some text') is a call to the function gettext_lazy passing in 'some text' -- ---- Waylan Limberg [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---