From fa3a2d0ab155e6a4ec086bae653ee8b1632075b0 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Tue, 20 Apr 2010 23:11:07 +0100 Subject: [PATCH] Added humanize to difficult numbers --- settings.py | 1 + templates/hr/applications/view.html | 6 ++++-- templates/sso/character.html | 4 +++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/settings.py b/settings.py index 635dd02..5f9f426 100644 --- a/settings.py +++ b/settings.py @@ -73,6 +73,7 @@ INSTALLED_APPS = ( 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', + 'django.contrib.humanize', 'django_evolution', 'registration', 'eve_proxy', diff --git a/templates/hr/applications/view.html b/templates/hr/applications/view.html index 3b4a3c2..bcfaf36 100644 --- a/templates/hr/applications/view.html +++ b/templates/hr/applications/view.html @@ -1,5 +1,7 @@ {% extends "base.html" %} +{% load humanize %} + {% block title %}View Application{% endblock %} {% block content %} @@ -34,7 +36,7 @@ @@ -42,7 +44,7 @@

Reddit Accounts

diff --git a/templates/sso/character.html b/templates/sso/character.html index 7c37f30..011d4a2 100644 --- a/templates/sso/character.html +++ b/templates/sso/character.html @@ -1,5 +1,7 @@ {% extends "base.html" %} +{% load humanize %} + {% block content %}

{{ character.name }}

@@ -10,7 +12,7 @@
  • Race: {{ character.race_description }}
  • Gender: {{ character.gender_description }}
  • Corporation: {{ character.corporation.name }}
  • -
  • Total SP: {{ character.total_sp }}
  • +
  • Total SP: {{ character.total_sp|intcomma }}