From 37abac3c02e1bfc39cac36a1317c3a34e32ed357 Mon Sep 17 00:00:00 2001 From: Adarnof Date: Wed, 6 Jan 2016 22:08:52 +0000 Subject: [PATCH] Fixed errors in logging. --- hrapplications/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hrapplications/views.py b/hrapplications/views.py index 3948d0d0..8398b95c 100755 --- a/hrapplications/views.py +++ b/hrapplications/views.py @@ -133,7 +133,7 @@ def hr_application_view(request, app_id): comment.commenter_character = EveCharacter.objects.get(character_id=auth_info.main_char_id) comment.comment = form.cleaned_data['comment'] comment.save() - logger.info("Saved comment by user %s to hrapplication %s" % (request.user, comment.hrapplication)) + logger.info("Saved comment by user %s to hrapplication %s" % (request.user, comment.application)) else: logger.debug("Returning blank HRApplication comment form.") @@ -142,7 +142,7 @@ def hr_application_view(request, app_id): if HRApplication.objects.filter(id=app_id).exists(): application = HRApplication.objects.get(id=app_id) comments = HRApplicationComment.objects.all().filter(application=application) - logger.debug("Retrieved hrpplication id %s on behalf of user %s with comments %s" % (app_id, request.user, commends)) + logger.debug("Retrieved hrpplication id %s on behalf of user %s with comments %s" % (app_id, request.user, len(comments))) else: application = HRApplication() comments = []