From 8dc5295b33a9bb9b652edc3c2be3437799ba6a9a Mon Sep 17 00:00:00 2001 From: chuzhang Date: Mon, 30 Nov 2015 11:17:54 +0800 Subject: [PATCH] Get back the necessary abstract method. JIRA: PDC-1051 --- pdc/apps/auth/models.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pdc/apps/auth/models.py b/pdc/apps/auth/models.py index 03b08674..d715fe59 100644 --- a/pdc/apps/auth/models.py +++ b/pdc/apps/auth/models.py @@ -65,6 +65,18 @@ class Meta: verbose_name = _('user') verbose_name_plural = _('users') + def get_full_name(self): + """ + Returns the full name for the user. + """ + return self.full_name + + def get_short_name(self): + """ + Returns full name as short name for the user. + """ + return self.full_name + def email_user(self, subject, message, from_email=None, **kwargs): """ Sends an email to this User.