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

Implement natural keys #76

Open
sveetch opened this issue Dec 17, 2023 · 0 comments
Open

Implement natural keys #76

sveetch opened this issue Dec 17, 2023 · 0 comments
Labels
New feature New feature or request

Comments

@sveetch
Copy link
Member

sveetch commented Dec 17, 2023

Is your feature request related to a problem? Please describe.
There is currently no way to use Natural keys with Lotus object serialization.

It is not a functional issue but it is almost necessary to dump Lotus datas, since its models have many relational fields.

Describe the solution you'd like
This is easy as add get_by_natural_key() to managers and get_by_natural_key() to Model, so Django is instructed how it can deserialize/serialize objects using natural keys. Obviously this is only for models that uniqueness constraints.

@sveetch sveetch added the New feature New feature or request label Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New feature New feature or request
Projects
Status: To do
Development

No branches or pull requests

1 participant