From 838b4e395282da3e4949d97e11fd608e081008c8 Mon Sep 17 00:00:00 2001 From: Weitian LI Date: Mon, 21 Apr 2014 21:23:24 +0800 Subject: * added following methods for 'UserProfile' model: o get_gender_value() o get_approved_value() o get_sponsored_value() o get_identify_value() * updated 'user_registered_callback' to save 'identify' field * updated 'account/profile.html' template to show identify infomation --- account/templates/account/profile.html | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'account/templates') diff --git a/account/templates/account/profile.html b/account/templates/account/profile.html index e8d295c..4f5532d 100644 --- a/account/templates/account/profile.html +++ b/account/templates/account/profile.html @@ -1,6 +1,7 @@ {% extends 'base.html' %} {% load staticfiles %} {% load url from future %} +{% load i18n %} {% load bootstrap3 %} {# login template #} @@ -42,6 +43,10 @@ 单位 {{ profile.institute }} + + 身份 + {% trans profile.get_identify_value %} + 是否审定 -- cgit v1.2.2