If I would do this in the view, I couldn't do something like this in the template:
{% for category in categories %} {% for expense in category.get_monthly_expenses %} ... {% endfor %} {% endfor %} If I do it in the view, the only way I can think of it could be accomplished by stuffing categories in dictionaries, appending the expenses... Is this normal to do so? But thanks anyway! -benjamin Am 04.10.2008 um 17:52 schrieb Ulises: > >> Accessing the user from within the model seems somehow like a bad >> idea, but I can't see an other way to do this. > > How about doing it in a view where you have access to the user object? > I reckon this is the type of stuff you normally do in views? > > U --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---