On Thu, Jun 18, 2009 at 2:22 PM, Joshua Russo <joshua.rupp...@gmail.com>wrote:
> > I'm a little confused about where to use translation.ugettext and > translation.ugettext_lazy. The documentation says to always use the > lazy translation method in models, but it doesn't say why. Are there > other places that need the lazy functionality and what makes models > special that you can only use the lazy functionality? > > > You should always use the _lazy variant when you are in the global scope (this includes in class definitions, but *not* method definitions), and the normal version when you are inside of a function call. Alex -- "I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire "The people's good is the highest law."--Cicero --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---