diff --git a/main/utils.py b/main/utils.py index 82b2291..9735761 100644 --- a/main/utils.py +++ b/main/utils.py @@ -2,4 +2,4 @@ def format_username(firstname, lastname): first = firstname.lower().strip().replace(" ", "")[:6].encode('ascii', 'ignore') last = lastname.lower().strip().replace(" ", "")[:6].encode('ascii', 'ignore') - return "{}{}".format(first, last) + return "{0}{0}".format(first, last) diff --git a/templates/register.html b/templates/register.html index 9dd62a0..0e1d44c 100644 --- a/templates/register.html +++ b/templates/register.html @@ -41,7 +41,7 @@