From 99edd912082815a519fb3823c06961e9fd970ec7 Mon Sep 17 00:00:00 2001 From: Weitian LI Date: Tue, 20 May 2014 20:22:48 +0800 Subject: * added 'is_checkin' field to account.models.UserProfile * added 'get_checkin_value', 'dump_fieldnames' and 'dump' methods to UserProfile model * generated south migrations for app 'account' * display two more columns (email, is_checkin) in UserProfileAdmin * added 'get_urls' and 'userprofile_csv_view' to UserProfileAdmin * updaed 'profile.html' with 'is_checkin' field --- account/templates/account/profile.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'account/templates') diff --git a/account/templates/account/profile.html b/account/templates/account/profile.html index ad367f1..88e938f 100644 --- a/account/templates/account/profile.html +++ b/account/templates/account/profile.html @@ -103,6 +103,20 @@ {% endif %} + + 是否报到 + + {% if profile.is_checkin == 'Y' %} + + {% elif profile.is_checkin == 'N' %} + + {% elif profile.is_checkin == 'X' %} + 不可用 + {% else %} + 系统错误 + {% endif %} + + {# user uploaded files #} {% if userfiles %} -- cgit v1.2.2