Add autocomplete widget and fix some errors

This commit is contained in:
Jan Tuomi
2017-09-25 20:45:13 +03:00
parent 91a0694ae5
commit 7ce28c3a48
9 changed files with 55 additions and 3 deletions
+4 -1
View File
@@ -8,6 +8,9 @@ from django.conf import settings
from django.utils.translation import ugettext as _
from django.forms.models import model_to_dict
import logging
import html
from members.views.utils import *
from members.tables import PaymentTable
from members.forms import PaymentForm
@@ -55,7 +58,7 @@ def payment_submit(request, *args, **kwargs):
form.save()
logging.info(
"Saved new payment to member register with the following info: {}"
.format(form))
.format(form.cleaned_data))
notification = "{} {}.".format(
_("Successfully added payment for member"),
form.cleaned_data['member'])