Skip to content
This repository

Year of birth to preview #55

Merged
merged 1 commit into from over 1 year ago

1 participant

Antti Jaakkola
Antti Jaakkola
Owner

.

Antti Jaakkola annttu merged commit 6209c11 into from January 01, 2013
Antti Jaakkola annttu closed this January 01, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jan 01, 2013
Antti Jaakkola birth year to preview 0c20e3a
This page is out of date. Refresh to see the latest.
2  membership/static/js/member_list.js
@@ -60,6 +60,8 @@ function makeMembershipDetailObject(id) {
60 60
 	addRow(obj.table, gettext("Nationality"), "nationality");
61 61
 	addRow(obj.table, gettext("Visible in the public memberlist"), "public_memberlist");
62 62
 	addRow(obj.table, gettext("Aliases"), "aliases");
  63
+	addRow(obj.table, gettext("Year of birth"), "birth_year");
  64
+	addRow(obj.table, gettext("Organization registration number"), "organization_registration_number");
63 65
 	addRow(obj.table, gettext("Services"), "services");
64 66
 	addRow(obj.table, gettext("Additional information"), "extra_info");
65 67
     }
6  membership/utils.py
@@ -113,7 +113,8 @@ def serializable_membership_info(membership):
113 113
     json_obj = {}
114 114
     # Membership details
115 115
     for attr in ['type', 'status', 'created', 'last_changed', 'municipality',
116  
-                 'nationality', 'public_memberlist', 'extra_info']:
  116
+                 'nationality', 'public_memberlist', 'extra_info', 'birth_year',
  117
+                 'organization_registration_number']:
117 118
         # Get the translated value for choice fields, not database field values
118 119
         if attr in ['type', 'status']:
119 120
             attr_val = getattr(membership, 'get_' + attr + '_display')()
@@ -205,7 +206,8 @@ def admtool_membership_details(membership):
205 206
     json_obj = {}
206 207
     # Membership details
207 208
     for attr in ['id', 'type', 'status', 'created', 'last_changed', 'municipality',
208  
-                 'nationality', 'public_memberlist', 'extra_info']:
  209
+                 'nationality', 'public_memberlist', 'extra_info', 'birth_year',
  210
+                 'organization_registration_number']:
209 211
         # Get the translated value for choice fields, not database field values
210 212
         attr_val = escape(getattr(membership, attr, u''))
211 213
         if isinstance(attr_val, basestring):
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.