1👍
You cannot use F on the left side of the equality.
To get what you want, use exclude instead of filter :
qs = qs.exclude(current_tot = F('current_num'))
Source:stackexchange.com
1👍
You cannot use F on the left side of the equality.
To get what you want, use exclude instead of filter :
qs = qs.exclude(current_tot = F('current_num'))