I am trying to update and modify a string field Django\'s ORM. The equivalent SQL to do this is:
UPDATE example_table SET string_field = REPLACE(string_fiel
New in Django 2.1 - Replace database function
Your example can now be expressed most easily via:
ExampleModel.objects.update(string_field=Replace('string_field', Value('old_text'), Value('new_text')))