CSSUoB / CSSUoB/TeX-Bot-Py-V2

Identify why Django `F` fields are broken

Aperta
#490 0 commenti 0 reazioni 1 assegnatario Rivendicata da @CarrotManMatt Vedi su GitHub
question
Lingua principale
Python
Stelle
1
Fork
11
Merge medio
20h 7m
PR unite (30g)
2

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.