from django.utils.translation import ugettext_lazy as _
HTH,
Daniel
Am Dienstag, den 23.09.2008, 04:12 -0700 schrieb laspal:
> Hi,
> I am using 1.0 version ran into problem.
>
> My model :
> from django.db import models
>
> from django.contrib.auth.models import User
>
>
>
> IPSecurity = True
>
>
>
> class IPAccess(models.Model):
>
> ip = models.IPAddressField(_('ip'), unique=True, db_index=True)
>
> location = models.CharField(max_length = 100)
>
>
>
> def __unicode__(self):
>
> return self.ip
>
>
>
> class Meta:
>
> verbose_name = _('IP Access')
>
> verbose_name_plural = _('IP Accesses')
>
>
>
> #class Admin:
>
> # list_display = ('ip', 'user')
>
>
>
> admin.site.register(IPAccess)
>
>
>
> class AuthorisedUser(models.Model):
>
> user = models.ForeignKey(User, verbose_name=_('Authorised User.
> Access from anywhere'))
>
> Getting error: name '_' is not defined.
> Can someone help me out.
>
> Thanks.
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---