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

Remove explicit table and column in Django model fields #15

Merged
merged 2 commits into from
Dec 12, 2024

Conversation

yujiyokoo
Copy link
Collaborator

This removes the need to be explicit about table and column in Django models. Instead of:

class User(models.Model)
    name = EncrypytedText(eql_table="users", eql_column="name)

the field can be simplified to:

class User(models.Model)
    name = EncryptedText()

It is still possible to provide the table and column names in case you have different names, but they are now prefixed with eql_.

remove comment about removing table and column

formatting
@yujiyokoo yujiyokoo force-pushed the cip-1051-remove-repetitive-table-and-column branch from 84ed20c to 3b006db Compare December 12, 2024 07:02
@yujiyokoo yujiyokoo marked this pull request as ready for review December 12, 2024 07:02
@yujiyokoo yujiyokoo merged commit e46ba46 into main Dec 12, 2024
1 check passed
@yujiyokoo yujiyokoo deleted the cip-1051-remove-repetitive-table-and-column branch December 12, 2024 14:49
@yujiyokoo yujiyokoo mentioned this pull request Dec 13, 2024
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

Successfully merging this pull request may close these issues.

2 participants