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

Allow empty values in EncryptedDateField #4

Merged
merged 1 commit into from
Mar 5, 2014

Conversation

petebrowne
Copy link
Contributor

Example:

class SomeDjangoModel(mode.Model):
    datetime = pgcrypto.EncryptedDateTimeField()

instance = SomeDjangoModel()
# ValidationError: [u"'' value has an invalid date format. It must be in YYYY-MM-DD format."]

Need to check if value is None or empty before parsing.

Also, can you release these changes to PyPI?

dcwatson added a commit that referenced this pull request Mar 5, 2014
Allow empty values in EncryptedDateField
@dcwatson dcwatson merged commit 2ea29e2 into dcwatson:master Mar 5, 2014
@dcwatson
Copy link
Owner

dcwatson commented Mar 5, 2014

Pushed out version 1.1.1.

@petebrowne
Copy link
Contributor Author

Thanks!

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