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

Switch to uuids as pk for ~all models #281

Open
odinuge opened this issue Aug 25, 2020 · 0 comments
Open

Switch to uuids as pk for ~all models #281

odinuge opened this issue Aug 25, 2020 · 0 comments
Labels
enhancement Pull requests that make or issues that suggest enhancements, instead of just purely new features level:medium priority:high Pull requests that have high priority, and should therefore be prioritized

Comments

@odinuge
Copy link
Member

odinuge commented Aug 25, 2020

There is no reason to not do it. ™️

import uuid
from django.db import models

class MyModelBoi(models.Model):
    id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
@odinuge odinuge added the priority:high Pull requests that have high priority, and should therefore be prioritized label Aug 25, 2020
@LudvigHz LudvigHz added enhancement Pull requests that make or issues that suggest enhancements, instead of just purely new features level:easy labels Aug 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Pull requests that make or issues that suggest enhancements, instead of just purely new features level:medium priority:high Pull requests that have high priority, and should therefore be prioritized
Projects
None yet
Development

No branches or pull requests

3 participants