RajeshD wrote:
>
>> Or do I have to pass this list of
>> albums to the template:
>>
>> my_albums = Album.objects.filter(owner = request.user)
>
> This will work.
>
>> and then construct a select box based on that list. If so, I'd probably
>> "break out" of {{ form.albums }} and loose {{ form.er
> Or do I have to pass this list of
> albums to the template:
>
> my_albums = Album.objects.filter(owner = request.user)
This will work.
>
> and then construct a select box based on that list. If so, I'd probably
> "break out" of {{ form.albums }} and loose {{ form.errors }}. Is that so?
No. Y
Thanks for excellent advice and suggestions posted on this list.
I'm still learning Django and Python, though I decided to give it a try
in one of my larger projects.
I'm trying to add a few forms to my templates and I have a question
about filtering some form elements, particularly in related
3 matches
Mail list logo