Skip to content

Commit db63f77

Browse files
authored
Revert "Adding is-featured in events model and schema (fossasia#5563)" (fossasia#5572)
This reverts commit 909bd83.
1 parent 909bd83 commit db63f77

File tree

3 files changed

+0
-27
lines changed

3 files changed

+0
-27
lines changed

app/api/schema/events.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ def validate_timezone(self, data, original_data):
118118
refund_policy = fields.String(dump_only=True,
119119
default='All sales are final. No refunds shall be issued in any case.')
120120
is_stripe_linked = fields.Boolean(dump_only=True, allow_none=True, default=False)
121-
is_featured = fields.Bool(default=False)
122121

123122
tickets = Relationship(attribute='tickets',
124123
self_view='v1.event_ticket',

app/models/event.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ class Event(SoftDeletionModel):
4848
ends_at = db.Column(db.DateTime(timezone=True), nullable=False)
4949
timezone = db.Column(db.String, nullable=False, default="UTC")
5050
is_event_online = db.Column(db.Boolean, default=False)
51-
is_featured = db.Column(db.Boolean, default=False)
5251
latitude = db.Column(db.Float)
5352
longitude = db.Column(db.Float)
5453
location_name = db.Column(db.String)
@@ -216,7 +215,6 @@ def __init__(self,
216215
discount_code_id=None,
217216
onsite_details=None,
218217
is_tax_enabled=None,
219-
is_featured=False,
220218
is_sponsors_enabled=None,
221219
stripe_authorization=None,
222220
tax=None,
@@ -284,7 +282,6 @@ def __init__(self,
284282
self.order_expiry_time = order_expiry_time
285283
self.refund_policy = refund_policy
286284
self.is_stripe_linked = is_stripe_linked
287-
self.is_featured = is_featured
288285

289286
def __repr__(self):
290287
return '<Event %r>' % self.name

migrations/versions/498b78507b64_.py

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy