Re: manytomany and multiple selects

2006-09-11 Thread LizzyLiz
Hi Russ Thanks for your reply I picked option 1 which worked perfectly :-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegr

Re: manytomany and multiple selects

2006-09-08 Thread Russell Keith-Magee
On 9/8/06, LizzyLiz <[EMAIL PROTECTED] > wrote: I would like to show which of these accounts are already linked to theuser but I'm not sure how to do it - something like: account.id }}"  {% if account.id inuser.accounts %}selected="True"{% endif %}>{{ account.name}}You won't be able to use

manytomany and multiple selects

2006-09-08 Thread LizzyLiz
In my model a user can be linked to many accounts - to display this I've got a multiple select on a manytomany field, I pass the user and the list of all possible accounts to the template: {% for account in accounts %} {{account.name}} {% endfor %} This displays the account nam