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

A new validate check before create or update #12

Open
nnseva opened this issue May 17, 2020 · 0 comments
Open

A new validate check before create or update #12

nnseva opened this issue May 17, 2020 · 0 comments

Comments

@nnseva
Copy link
Owner

nnseva commented May 17, 2020

Existent checks for create and update doesn't concern to the new attribute values.

It may be important especially for the foreign key values when the only selected person can link the created or updated instance to the object which is visible, but readonly for others.

It is proposed to create a check like verify_appendable() and verify_updateable() with parameters:

  • model to be verified
  • instance (?) to be verified (for updateable)
  • dictionary of new attribute values
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