For the record, I modified a little bit my object but the key was in
precising a lot |dictsort like the following case :
{# -- Compétences techniques -- #}
{% if user_techskill %}
Comptences techniques :
{% for tskill in
Nicolas Steinmetz a écrit :
> Nicolas Steinmetz a écrit :
> [...]
>
>> I tried this but the bug persists. Sometimes it works well (technical
>> skills are well regrouped by technical domaines) but if I refresh, it's
>> no longer the case.
>>
>> I even tried this on an easier object and it does
Nicolas Steinmetz a écrit :
[...]
> I tried this but the bug persists. Sometimes it works well (technical
> skills are well regrouped by technical domaines) but if I refresh, it's
> no longer the case.
>
> I even tried this on an easier object and it does not work more
> efficiently
Florian Apolloner a écrit :
> I am not quite sure wheter my answer is correct, as you didn't post
> your view,
My view is quite simple :
# Display the detail for a given CV
def cv_detail(request, firstname, lastname):
user = User.objects.get(first_name=firstname, last_name=lastname)
I am not quite sure wheter my answer is correct, as you didn't post
your view, but I think this is your problem (copy from
http://www.djangoproject.com/documentation/templates/#regroup):
Note that {% regroup %} does not work when the list to be grouped is
not sorted by the key you are grouping
5 matches
Mail list logo