get_dict n template for Person done v1.2
This commit is contained in:
parent
e9211738bc
commit
d1863752ce
|
@ -72,11 +72,10 @@ class Person(ItfModel):
|
||||||
'first_name': self.first_name,
|
'first_name': self.first_name,
|
||||||
'last_name': self.last_name,
|
'last_name': self.last_name,
|
||||||
'about': self.about,
|
'about': self.about,
|
||||||
'user': self.user,
|
|
||||||
'tel_no': self.tel_no,
|
'tel_no': self.tel_no,
|
||||||
'about':self.about,
|
'about':self.about,
|
||||||
'dob':self.dob,
|
'dob':self.dob,
|
||||||
'is_practioner':self.is_practioner,
|
'is_practitioner':self.is_practitioner,
|
||||||
'is_enthusiast':self.is_enthusiast,
|
'is_enthusiast':self.is_enthusiast,
|
||||||
'is_freelancer': self.is_freelancer,
|
'is_freelancer': self.is_freelancer,
|
||||||
'occupations': [ obj for obj in self.occupations.all()],
|
'occupations': [ obj for obj in self.occupations.all()],
|
||||||
|
|
|
@ -29,9 +29,6 @@
|
||||||
{% if about %}
|
{% if about %}
|
||||||
<span class="orange"> About : </span> {{ about }}
|
<span class="orange"> About : </span> {{ about }}
|
||||||
{% endif %} <br/>
|
{% endif %} <br/>
|
||||||
{% if user %}
|
|
||||||
<span class="orange"> Username : </span> {{ user }}
|
|
||||||
{% endif %} <br/>
|
|
||||||
{% if tel_no %}
|
{% if tel_no %}
|
||||||
<span class="orange"> Tel_no : </span> {{ tel_no }}
|
<span class="orange"> Tel_no : </span> {{ tel_no }}
|
||||||
{% endif %} <br/>
|
{% endif %} <br/>
|
||||||
|
@ -40,8 +37,8 @@
|
||||||
<span class="orange"> Date-of-birth : </span> {{ dob }}
|
<span class="orange"> Date-of-birth : </span> {{ dob }}
|
||||||
{% endif %} <br/>
|
{% endif %} <br/>
|
||||||
|
|
||||||
{% if is_practioner %}
|
{% if is_practitioner %}
|
||||||
<span class="orange"> Practioner </span> {{ is_practioner }}
|
<span class="orange"> Practitioner </span> {{ is_practioner }}
|
||||||
{% endif %} <br/>
|
{% endif %} <br/>
|
||||||
{% if is_enthusiast %}
|
{% if is_enthusiast %}
|
||||||
<span class="orange"> Enthusiast : </span> {{ is_enthusiast }}
|
<span class="orange"> Enthusiast : </span> {{ is_enthusiast }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user