%2Fdocs.djangoproject.com%2Fen%2F1.9%2Fref%2Fmodels%2Fquerysets%2F%23django.db.models.Avg&sa=D&sntz=1&usg=AFQjCNHy9ETv9fmPLefytqt0O6V-yhjXgw>
>
> Le samedi 2 avril 2016 13:08:20 UTC-4, Tazo Gil a écrit :
>>
>> Hello,
>>
>> The following request works
I forgot to precise the type of the field Chrono.temps:
temps = models.DurationField(null=True)
Le samedi 2 avril 2016 19:08:20 UTC+2, Tazo Gil a écrit :
>
> Hello,
>
> The following request works in my dev django project (sqlite) by not in
> production with po
Hello,
The following request works in my dev django project (sqlite) by not in
production with postgres
out: >>>
Questionnaire.objects.filter(site_id=1).annotate(moyenne=Avg('chrono__temps')).values('title','moyenne')
The errors :
out: Traceback (most recent call last):
out: File "", li
Dear all
django 1.8
python 3.4
The sqlite function sqlite-Levenshtein
(https://github.com/mateusza/SQLite-Levenshtein) is working perfectly in
the django shell, example:
self.annotate(distance=Func(Value(aword), F('word'), function='levenshtein'
)).filter(distance__lte=settings.DISTANCE_LEVENS
4 matches
Mail list logo