Skip to content

Commit

Permalink
fix: allow refund_policy to be none
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Sep 10, 2020
1 parent 97f3497 commit 886763e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions app/api/schema/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,7 @@ def validate_timezone(self, data, original_data):
xcal_url = fields.Url(dump_only=True)
live_stream_url = fields.Url(allow_none=True)
webinar_url = fields.Url(allow_none=True)
refund_policy = fields.String(
default='All sales are final. No refunds shall be issued in any case.',
)
refund_policy = fields.String(allow_none=True)
is_stripe_linked = fields.Boolean(dump_only=True, allow_none=True, default=False)

tickets = Relationship(
Expand Down
4 changes: 1 addition & 3 deletions app/models/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,7 @@ class Event(SoftDeletionModel):
ical_url = db.Column(db.String)
xcal_url = db.Column(db.String)
is_sponsors_enabled = db.Column(db.Boolean, default=False)
refund_policy = db.Column(
db.String, default='All sales are final. No refunds shall be issued in any case.'
)
refund_policy = db.Column(db.String)
is_stripe_linked = db.Column(db.Boolean, default=False)
live_stream_url = db.Column(db.String)
webinar_url = db.Column(db.String)
Expand Down

0 comments on commit 886763e

Please sign in to comment.