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
Post a Comment