get_dict n template for Person done v1.2

This commit is contained in:
Johnson Chetty 2012-09-01 20:56:45 +02:00
parent e9211738bc
commit d1863752ce
2 changed files with 3 additions and 7 deletions

View File

@ -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()],

View File

@ -29,9 +29,6 @@
{% if about %}
<span class="orange"> About : </span> {{ about }}
{% endif %} <br/>
{% if user %}
<span class="orange"> Username : </span> {{ user }}
{% endif %} <br/>
{% if tel_no %}
<span class="orange"> Tel_no : </span> {{ tel_no }}
{% endif %} <br/>
@ -40,8 +37,8 @@
<span class="orange"> Date-of-birth : </span> {{ dob }}
{% endif %} <br/>
{% if is_practioner %}
<span class="orange"> Practioner </span> {{ is_practioner }}
{% if is_practitioner %}
<span class="orange"> Practitioner </span> {{ is_practioner }}
{% endif %} <br/>
{% if is_enthusiast %}
<span class="orange"> Enthusiast : </span> {{ is_enthusiast }}