CSSUoB / CSSUoB/TeX-Bot-Py-V2

Identify why Django `F` fields are broken

Open
#490 0 comments 0 reactions 1 assignee Claimed by @CarrotManMatt View on GitHub
question
Dominant language
Python
Stars
1
Forks
11
Avg merge
20h 7m
Merged PRs (30d)
2

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.