Skip to content

Commit

Permalink
Merge pull request #303 from magfest/ftr_dont_redirect_prereg
Browse files Browse the repository at this point in the history
dont redirect prereg closed/open/capped
  • Loading branch information
binary1230 committed Jun 14, 2014
2 parents 6e9c757 + 48ef165 commit dc82ace
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions uber/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ def check_if_can_reg(func):
@wraps(func)
def with_check(*args,**kwargs):
if state.BADGES_SOLD >= MAX_BADGE_SALES:
raise HTTPRedirect('../static_views/prereg_soldout.html')
return render('static_views/prereg_soldout.html')
elif state.PREREG_OPEN == "notopenyet":
raise HTTPRedirect('../static_views/prereg_not_yet_open.html')
return render('static_views/prereg_not_yet_open.html')
elif state.PREREG_OPEN == "closed":
raise HTTPRedirect('../static_views/prereg_closed.html')
return render('static_views/prereg_closed.html')
else:
return func(*args,**kwargs)
return with_check
Expand Down

0 comments on commit dc82ace

Please sign in to comment.