[Answered ]-How can I set and append in column with conditional case in Django?

1👍

You can use the F objects:

from django.db.models import F

Table.objects.filter(...).update(column=F("column") + "100")

You don’t need to check if column == "" because it won’t matter when you append "100" to it.

👤Selcuk

Leave a comment