Skip to content

Wrong message after updating primary key. #2

Description

@MiguelSR

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions