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? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -