We don't even have to change the for-syntax:

{% for bee in my_bonnet.bees %} 
     <ul class="bee list"> 
     {% loop %} 
         <li>{{ bee }}</li> 
     {% endloop %} 
     </ul> 
{% empty %} 
     <span>No bees!</span> 
{% endfor %}



Le mardi 4 juin 2013 00:03:12 UTC+2, Shai Berger a écrit :
>
>
> {% for my_bonnet.bees %} 
>      <ul class="bee list"> 
>      {% each bee %} 
>          <li>{{ bee }}</li> 
>      {% endeach %} 
>      </ul> 
> {% empty %} 
>      <span>No bees!</span> 
> {% endfor %} 
>

 

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" 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-developers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to