if your view uses DjangoContext (which the generic views do I belive)
than the user is just

{{ user }}
so something like
{% for group in user.get_group_list %}
 {{ group }}
{% endfor %}
should work.

regards
Ian

On 12/22/05, patrick k <[EMAIL PROTECTED]> wrote:
>
> while trying to implement a system for project-management into our
> django-based admin-interface, i´m having a small problem here.
>
> right now, i´m using generic views for the "notes".
> when a user wants to create a note, he/she has to select a user or a
> user-group which relates to that note. for the user(groups), i´m using
> djangos auth tables.
>
> question is: how do i get the user and user-groups within my template (which
> is notes_form.html)?
> more general: is there a way to add additional data (from different modules)
> to info_dict?
>
> patrick
>
>


--
[EMAIL PROTECTED] -- blog: http://feh.holsman.net/ -- PH: ++61-3-9877-0909

If everything seems under control, you're not going fast enough. -
Mario Andretti

Reply via email to