Many thanks! Will make my views and templates definitely shorter.
On Wed, Jul 2, 2008 at 12:01 PM, Nebojša Đorđević <[EMAIL PROTECTED]> wrote: > On 26 Jun 2008, at 15:22, pihentagy wrote: >> Is there a way I can tell the model about the request's language? Or, >> well, I know it is a violation of MVC, but how to solve this problem? > from django.utils.translation import get_language > lang = get_language() -- Will Rogers - "I don't make jokes. I just watch the government and report the facts." --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

