Skip to content

Commit dd0b8f0

Browse files
committed
filter was the wrong way round
1 parent eacfb97 commit dd0b8f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ukgrantmaking/management/commands/grants/update_recipient_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def recipient_type(db_con, company_batch_size):
239239
Grant.objects.select_related("recipient")
240240
.select_for_update()
241241
.filter(
242-
Q(recipient_type_manual__isnull=False)
242+
Q(recipient_type_manual__isnull=True)
243243
& Q(recipient__type_manual__in=Grant.RecipientType.values)
244244
)
245245
.update(

0 commit comments

Comments
 (0)