Skip to content

Commit

Permalink
Replace instances of Pass with Badge
Browse files Browse the repository at this point in the history
...since we sell badges, not passes
  • Loading branch information
earl7399 authored and RobRuana committed Dec 29, 2017
1 parent e327bde commit 03a36be
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions uber/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,14 +335,14 @@ def PREREG_HOTEL_INFO_EMAIL_DATE(self):
def AT_THE_DOOR_BADGE_OPTS(self):
"""
This provides the dropdown on the /registration/register page with its
list of badges available at-door. It includes a "Full Weekend Pass"
list of badges available at-door. It includes a "Full Weekend Badge"
if attendee badges are available. If one-days are enabled, it includes
either a generic "Single Day Pass" or a list of specific day badges,
either a generic "Single Day Badge" or a list of specific day badges,
based on the c.PRESELL_ONE_DAYS setting.
"""
opts = []
if self.ATTENDEE_BADGE_AVAILABLE:
opts.append((self.ATTENDEE_BADGE, 'Full Weekend Pass (${})'.format(self.BADGE_PRICE)))
opts.append((self.ATTENDEE_BADGE, 'Full Weekend Badge (${})'.format(self.BADGE_PRICE)))
for badge_type in self.BADGE_TYPE_PRICES:
if badge_type not in opts:
opts.append((badge_type, '{} (${})'.format(self.BADGES[badge_type], self.BADGE_TYPE_PRICES[badge_type])))
Expand All @@ -354,10 +354,10 @@ def AT_THE_DOOR_BADGE_OPTS(self):
price = self.BADGE_PRICES['single_day'].get(day_name) or self.DEFAULT_SINGLE_DAY
badge = getattr(self, day_name.upper())
if getattr(self, day_name.upper() + '_AVAILABLE', None):
opts.append((badge, day_name + ' Pass (${})'.format(price)))
opts.append((badge, day_name + ' Badge (${})'.format(price)))
day += timedelta(days=1)
elif self.ONE_DAY_BADGE_AVAILABLE:
opts.append((self.ONE_DAY_BADGE, 'Single Day Pass (${})'.format(self.ONEDAY_BADGE_PRICE)))
opts.append((self.ONE_DAY_BADGE, 'Single Day Badge (${})'.format(self.ONEDAY_BADGE_PRICE)))
return opts

@property
Expand Down

0 comments on commit 03a36be

Please sign in to comment.