Hi all,

I'm trying to migrate a Django app into Mezzanine for the first time, and 
everything is working really smoothly - however, when I'm attempting to 
extend from a 'base' page (i.e. pages/page.html), the template tags I'd 
been using (specifically 'regroup') are no longer working as expected:

{% extends "pages/page.html" %}

{% regroup original_list by filter_field as new_list %}

{% block main %}

{% for p in new_list %}
    <h2>{{ p.grouper }} </h2>
    {% for q in p.list %}
        <ul>
            <li>{{ q.foo }}</li>
            <li>{{ q.bar }}</li>
        </ul>
    {% endfor %}
{% endfor %}

{% endblock %}


The above works fine in either of the below cases:
1) I don't use the {% extends "pages/page.html" %}
2) I don't use the regroup => {% for p in new_list %} would be {% for p in 
original_list %}

Is there something I'm missing about how these tags work, or how Mezzanine 
handles the tags?

Thanks,

Rich

p.s. I've set this as "Ask a question" rather than "Start a discussion", as 
I don't know the difference at time of typing!

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to