mongodb - Modify default value of field from mongo-engine django -


i have following models

class xyz(document):     done_project_categories = listfield(stringfield(),          default=['all', 'residential', 'corporate', 'commercial']) 

i want change default value following , migrate onto mongodb

class xyz(document):     done_project_categories = listfield(stringfield(),          default=['all', 'residential', 'corporate', 'commercial', 'cafes']) 

i not able migrate onto datebase , looking exact command migrate changes onto mongodb.

i using mongo-engine interact database django.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -