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

Wrong message after updating primary key. #2

Open
MiguelSR opened this issue Jul 19, 2017 · 0 comments
Open

Wrong message after updating primary key. #2

MiguelSR opened this issue Jul 19, 2017 · 0 comments

Comments

@MiguelSR
Copy link

MiguelSR commented Jul 19, 2017

If a model has a string primary key, you can change it via update. Everything works OK, but it prints a contradictory warning message ("Registry <old_id> doesn't exist")

Example:

/usr/src/app # python -m my_module config js create --id "foobar"
You are about to create the following entry:

id               'miao'

Are you sure? [y/N]: y
The following entry was created:

id               'miao'

# Then the following

/usr/src/app # python -m my_module config js update 'foobar' --id "barfoo"
You are about to update the following record:

id               'foobar'

With the following information:

id  barfoo

Are you sure? [y/N]: y
Changed 1 records.
Registry foobar does not exists.
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