From d1863752ce2d7bf9708e763970a4f127f16465bf Mon Sep 17 00:00:00 2001 From: Johnson Chetty Date: Sat, 1 Sep 2012 20:56:45 +0200 Subject: [PATCH] get_dict n template for Person done v1.2 --- itf/itfprofiles/models.py | 3 +-- itf/templates/modules/itfprofiles/person.html | 7 ++----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/itf/itfprofiles/models.py b/itf/itfprofiles/models.py index 9eac718..bfb8ff3 100644 --- a/itf/itfprofiles/models.py +++ b/itf/itfprofiles/models.py @@ -72,11 +72,10 @@ class Person(ItfModel): 'first_name': self.first_name, 'last_name': self.last_name, 'about': self.about, - 'user': self.user, 'tel_no': self.tel_no, 'about':self.about, 'dob':self.dob, - 'is_practioner':self.is_practioner, + 'is_practitioner':self.is_practitioner, 'is_enthusiast':self.is_enthusiast, 'is_freelancer': self.is_freelancer, 'occupations': [ obj for obj in self.occupations.all()], diff --git a/itf/templates/modules/itfprofiles/person.html b/itf/templates/modules/itfprofiles/person.html index 7075174..43408df 100644 --- a/itf/templates/modules/itfprofiles/person.html +++ b/itf/templates/modules/itfprofiles/person.html @@ -29,9 +29,6 @@ {% if about %} About : {{ about }} {% endif %}
- {% if user %} - Username : {{ user }} - {% endif %}
{% if tel_no %} Tel_no : {{ tel_no }} {% endif %}
@@ -40,8 +37,8 @@ Date-of-birth : {{ dob }} {% endif %}
- {% if is_practioner %} - Practioner {{ is_practioner }} + {% if is_practitioner %} + Practitioner {{ is_practioner }} {% endif %}
{% if is_enthusiast %} Enthusiast : {{ is_enthusiast }}