On Fri, 2009-04-03 at 21:07 -0400, Alex Gaynor wrote: [...] > A lazy reverse shouldn't be too difficult to implement in your own > code though: > > from django.utils.functional import lazy > reverse_lazy = lazy(reverse, str)
This would have to be "unicode", not "str", since reverse() really returns IRIs, not merely URIs. > > This is totally untested, And django.utils.functional is internal API, so this shouldn't ever be relied upon to not change. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

