Re: Bug with regroup ? (which does not regroup as he shoud / I hope...)

2007-06-30 Thread Nicolas Steinmetz
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

Re: Bug with regroup ? (which does not regroup as he shoud / I hope...)

2007-06-21 Thread Nicolas Steinmetz
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

Re: Bug with regroup ? (which does not regroup as he shoud / I hope...)

2007-06-19 Thread Nicolas Steinmetz
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

Re: Bug with regroup ? (which does not regroup as he shoud / I hope...)

2007-06-18 Thread Nicolas Steinmetz
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)

Re: Bug with regroup ? (which does not regroup as he shoud / I hope...)

2007-06-17 Thread Florian Apolloner
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

Bug with regroup ? (which does not regroup as he shoud / I hope...)

2007-06-17 Thread Nicolas Steinmetz
Hello, I have the following Model : class Summary(models.Model): who = models.ForeignKey(User, unique=True, verbose_name='Personne') job_profile = models.CharField('Profil de poste', maxlength=100) summary = models.TextField('Résumé',) intervention_level =