error introduced by a comment

pull/1/head
eric 2015-04-10 15:10:55 -04:00
parent 6ef8e7699d
commit 4944df8e78
1 changed files with 2 additions and 1 deletions

View File

@ -57,6 +57,7 @@ def deliver_extra_data(backend, details, response, uid, user, social_user=None,
if backend.name is 'facebook':
facebook_extra_values( user, social_user.extra_data)
# following is needed because of length limitations in a unique constrain for MySQLdef chop_username(username, *args, **kwargs):
# following is needed because of length limitations in a unique constrain for MySQL
def chop_username(username, *args, **kwargs):
if username and len(username)>222:
return {'username':username[0:222]}