CSSUoB / CSSUoB/TeX-Bot-Py-V2

Identify why Django `F` fields are broken

Offen
#490 0 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @CarrotManMatt Auf GitHub ansehen
question
Vorherrschende Sprache
Python
Sterne
1
Forks
11
Ø Merge
20 Std. 7 Min.
Gemergte PRs (30 T.)
2

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.