Thank you very much!

On 03/08/2013 03:12 PM, Javier Guerra Giraldez wrote:
> On Fri, Mar 8, 2013 at 5:07 AM, Roberto López López
> <[email protected]> wrote:
>> I'd like to avoid having to concatenate them in the view and pass that
>> as another parameter.
> 
> 
> two ideas come to mind:
> 
> - itertools.chain() on the view.  it's equivalent to concatenating,
> but done lazily, so there's _very_ little overhead.
> 
> - add them in the template.  the 'add' filter is supposed to work with
> lists too.
> 
> needless to say, i'd far prefer the first option.  view functions are
> supposed to gather and organize all the info and templates should have
> as little behaviour as possible.
> 
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to