CSSUoB / CSSUoB/TeX-Bot-Py-V2

Identify why Django `F` fields are broken

Abierto
#490 0 comentarios 0 reacciones 1 asignado Reclamado por @CarrotManMatt Ver en GitHub
question
Lenguaje dominante
Python
Estrellas
1
Forks
11
Merge medio
20 h 7 min
PR fusionados (30 d)
2

Descripción

Using Django's `F` fields to optimise the SQL queries made in a `Model.aupdate()` operation seems to result in the following error: `'strikes': ["F(strikes) - Value(1)" value must be an integer for both places.]`. This has resulted in the need to use an update to the field's value in Python, along with a call to `Model.asave()` which is less efficient & performant.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.