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

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

c++ - How to modify context menu of internet explorer using IDocHostUIHandler::ShowContextMenu? -

c# - Asterisk click to call -