Revert "Update monkey_patch.py"

This reverts commit fb55f88cc7.
This commit is contained in:
Christopher Neugebauer 2018-10-31 14:36:41 -07:00
parent fb55f88cc7
commit 6ee11694e2

View file

@ -1,8 +1,6 @@
from django.conf import settings
from django.contrib.auth.models import User
from django.core.mail import EmailMultiAlternatives
from functools import wraps
@ -15,7 +13,6 @@ class MonkeyPatchMiddleware(object):
def do_monkey_patch():
patch_stripe_card_defaults()
patch_registrasion_views()
patch_conference_schedule()
# Remove this function from existence
@ -38,13 +35,6 @@ def patch_stripe_card_defaults():
sources.sync_card = sync_card
def patch_registrasion_views():
from registrasion import views as registrasion_views
from django.views.decorators.csrf import csrf_exempt
registrasion_views.invoice_mailout = csrf_exempt(registrasion_views.invoice_mailout)
def patch_conference_schedule():
from symposion.schedule import views as sv
from symposion.schedule import models as sm