diff options
author | Filipp Lepalaan <filipp@mac.com> | 2021-05-13 00:02:03 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2021-05-13 00:02:03 +0300 |
commit | 6514971850a070bd4aeb27aba85e319b852cbd97 (patch) | |
tree | b0280bf19021335f6170368e65c9ec7ab7cb7774 /servo/models/account.py | |
parent | 8891e69e711d4a197c3b16183e1c39accbd38b45 (diff) | |
download | Servo-6514971850a070bd4aeb27aba85e319b852cbd97.tar.gz Servo-6514971850a070bd4aeb27aba85e319b852cbd97.tar.bz2 Servo-6514971850a070bd4aeb27aba85e319b852cbd97.zip |
Django 3 fixes
Diffstat (limited to 'servo/models/account.py')
-rw-r--r-- | servo/models/account.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servo/models/account.py b/servo/models/account.py index b86c877..f72555b 100644 --- a/servo/models/account.py +++ b/servo/models/account.py @@ -259,7 +259,7 @@ class User(AbstractUser): def get_admin_url(self): return reverse('admin-edit_user', args=[self.pk]) - def __unicode__(self): + def __str__(self): return self.get_name() or self.username class Meta: |