Removed unused python user functions (Fixed #2594).

Now get_short_name() and get_full_name() are used on client side only.
This commit is contained in:
Emanuel Schütze 2016-11-07 15:58:20 +01:00
parent 7281aa57b8
commit 55a8c4e33a

View File

@ -188,14 +188,6 @@ class User(RESTModelMixin, PermissionsMixin, AbstractBaseUser):
# Return result
return name
# TODO: remove this function after PR#2476 is merged. (see Issue#2594)
def get_full_name(self):
return ''
# TODO: remove this function after PR#2476 is merged. (see Issue#2594)
def get_short_name(self):
return ''
def get_search_index_string(self):
"""
Returns a string that can be indexed for the search.