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

Formulate model for notes #11

Closed
diegofsousa opened this issue Jan 3, 2021 · 1 comment
Closed

Formulate model for notes #11

diegofsousa opened this issue Jan 3, 2021 · 1 comment

Comments

@diegofsousa
Copy link
Owner

No description provided.

@diegofsousa
Copy link
Owner Author

The approach to using the id was discussed. I thought of small hashes as it is used on youtube (E2FFOSg9_PE, itf-t6nZNY, etc.). I followed a series of discussions about the pros and cons of uuid and language hashes.

https://gist.github.com/rponte/bf362945a1af948aa04b587f8ff332f8
https://stackoverflow.com/questions/2519896/generate-unique-hashes-for-django-models

In this way the short-term solution is left to the library
django-hashid-field (https://github.com/nshafer/django-hashid-field) using AutoHash as the Primary Key for Notes.

diegofsousa added a commit that referenced this issue Jan 3, 2021
[#11] Formulating and creating the Notes model
This issue was closed.
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