python - Django queryset update fields with the lowercase equivalent - Django -
i update various models in go.
i need update varchar field lowercase equivalent.
any idea if can done single queryset?
since one-off easier run ./manage.py dbshell
, run update queries directly.
update sometable set somefield=lower(somefield);
Comments
Post a Comment