diff --git a/tailbone/templates/people/view_profile_buefy.mako b/tailbone/templates/people/view_profile_buefy.mako
index c10b808b..6c592d45 100644
--- a/tailbone/templates/people/view_profile_buefy.mako
+++ b/tailbone/templates/people/view_profile_buefy.mako
@@ -38,6 +38,10 @@
+
+ {{ member.number }}
+
+
{{ member.id }}
diff --git a/tailbone/views/members.py b/tailbone/views/members.py
index f887ae9f..f45032d6 100644
--- a/tailbone/views/members.py
+++ b/tailbone/views/members.py
@@ -2,7 +2,7 @@
################################################################################
#
# Rattail -- Retail Software Framework
-# Copyright © 2010-2019 Lance Edgar
+# Copyright © 2010-2020 Lance Edgar
#
# This file is part of Rattail.
#
@@ -50,6 +50,7 @@ class MemberView(MasterView):
}
grid_columns = [
+ 'number',
'id',
'person',
'customer',
@@ -62,6 +63,7 @@ class MemberView(MasterView):
]
form_fields = [
+ 'number',
'id',
'person',
'customer',
@@ -105,7 +107,7 @@ class MemberView(MasterView):
g.set_filter('email', model.MemberEmailAddress.address)
g.set_label('email', "Email Address")
- g.set_sort_defaults('id')
+ g.set_sort_defaults('number')
g.set_link('person')
g.set_link('customer')
diff --git a/tailbone/views/people.py b/tailbone/views/people.py
index 402cd493..2c1b7b27 100644
--- a/tailbone/views/people.py
+++ b/tailbone/views/people.py
@@ -384,6 +384,7 @@ class PeopleView(MasterView):
def get_context_member(self, member):
return {
'uuid': member.uuid,
+ 'number': member.number,
'id': member.id,
'active': member.active,
'joined': six.text_type(member.joined) if member.joined else None,