Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to rename a column #595

Open
anandsainath opened this issue Oct 3, 2014 · 0 comments
Open

No way to rename a column #595

anandsainath opened this issue Oct 3, 2014 · 0 comments

Comments

@anandsainath
Copy link

There doesn't seem to be a way to rename a column in a document. I would like to do an operation similar to the below MongoDB Query using a MongoEngine Query

db.list_input_file.update({},{$rename:{"content.Confe- rence" : "Conference"}}, false, true);

The only way to do this now is via the raw query.

JListInputFile.objects.update(__raw__={"$rename": {"content.old_name": "content.new_name"}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant