-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
fix: make annoucement filed in speakers call nullable #7435
Conversation
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.alter_column('speakers_calls', 'announcement', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After this line, please add statement for converting empty string to null as well
app/api/schema/speakers_calls.py
Outdated
@@ -54,7 +54,7 @@ def validate_date(self, data, original_data): | |||
# "speakers-call ends-at should be before event starts-at") | |||
|
|||
id = fields.Str(dump_only=True) | |||
announcement = fields.Str(required=True) | |||
announcement = fields.Str(required=False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be allow_none=True
Codecov Report
@@ Coverage Diff @@
## development #7435 +/- ##
============================================
Coverage 65.29% 65.29%
============================================
Files 265 265
Lines 13217 13217
============================================
Hits 8630 8630
Misses 4587 4587
Continue to review full report at Codecov.
|
Missing #7435 (comment) |
yes, I don't exactly know how to do that. Trying to find |
|
Fixes fossasia/open-event-frontend#5578
Checklist
development
branch.