X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6509b5cd1935677b4fc24ebf2f40f8fc2221dac5..a7d1e3cd75cd56c3f9a5ddceb63196aad9d1db65:/src/club/views.py?ds=sidebyside diff --git a/src/club/views.py b/src/club/views.py index ce76d6b76..74d86de9e 100644 --- a/src/club/views.py +++ b/src/club/views.py @@ -149,17 +149,6 @@ class PayUNotifyView(payu_views.NotifyView): order_model = models.PayUOrder -class MembershipView(UpdateView): - fields = ['name'] - - def get_success_url(self): - # TODO: get only current schedule if multiple. - return self.object.schedule_set.first().get_absolute_url() - - def get_object(self): - return self.request.user.membership - - class ScheduleThanksView(DetailView): model = models.Schedule slug_field = slug_url_kwarg = 'key' @@ -193,6 +182,7 @@ def member_verify(request): emails = request.POST.get('emails').strip().split('\n') rows = ['email;członek;nazwa użytkownika;aktywny;co najmniej do'] for email in emails: + email = email.strip() row = [email] schedules = models.Schedule.objects.filter(email=email).exclude(payed_at=None) if schedules.exists():