update django models in python code example
Example 1: django update model
Model.objects.filter(id = 223).update(field1 = 2)
Example 2: pip update django
pip install --upgrade django==1.6.5
Model.objects.filter(id = 223).update(field1 = 2)
pip install --upgrade django==1.6.5