Hi all, Since a good portion of my development time is spent trying to avoid ways to write custom template tags (worst part of Django, fact) I was wondering if anyone knows of a more powerful version of the simple_tag.
Ideally I'm looking for one that allows me to use this: def latest_orders(user_id,number): return Order.objects.filter(user_id=user_id).limit(number) like this: {% latest_orders request.user.id 5 as orders %} Regards, Andrew Ingram --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---