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

TimeZoneSerializerField should allow empty strings when required=False #130

Closed
ejain opened this issue Jun 25, 2024 · 3 comments · Fixed by #137
Closed

TimeZoneSerializerField should allow empty strings when required=False #130

ejain opened this issue Jun 25, 2024 · 3 comments · Fixed by #137

Comments

@ejain
Copy link

ejain commented Jun 25, 2024

No description provided.

@paulocoutinhox
Copy link

do you have a sample code to i understand?

@mfogel
Copy link
Owner

mfogel commented Jul 7, 2024

This isn't quite what required=True does - this allows the field to be omitted altogether - which is different then specifying the field as the empty string (or as None). This is documented here

Once #137 is merged, you can use the allow_blank=True kwarg to allow empty strings if you so desire.

@ejain
Copy link
Author

ejain commented Jul 7, 2024

@mfogel Perfect, 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
3 participants