diff --git a/management/api.py b/management/api.py index ff1ef0b..cf0ed3a 100755 --- a/management/api.py +++ b/management/api.py @@ -94,9 +94,8 @@ def new_bill(request, context): service = Price.objects.get(id=request.POST['new_bill_checked_service']) bill = Bill.objects.create(user=user, service=service, - file=bill.service.course.get_description_file(), - manager=request.user.get_full_name(), - manager_phone=request.user.get_phone(), + file=service.course.get_description_file(), + manager=request.user.get_full_name(), price=request.POST['new_bill_cost'], description=request.POST.get('new_bill_comment') if request.POST.get( 'new_bill_comment') else '') diff --git a/service/models.py b/service/models.py index bddf409..82d12a0 100755 --- a/service/models.py +++ b/service/models.py @@ -75,7 +75,6 @@ class MailBox(models.Model): msg = EmailMessage(self.title, self.result, u'{1} <{0}>'.format(DEFAULT_FROM_EMAIL, NAME), [self._to if not TESTING else TEST_EMAIL]) msg.content_subtype = "html" - msg.attach(u'Описание курса', file) try: msg.send() except smtplib.SMTPDataError as e: