From ddeb142060ee88b6bb092c512f698ab39ab2f108 Mon Sep 17 00:00:00 2001 From: "Rak-Kyoung, Choi" Date: Sat, 16 Aug 2014 03:25:36 +0900 Subject: [PATCH] correcting wrong variable in api.py username to slugified_name in api.py --- django_facebook/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_facebook/api.py b/django_facebook/api.py index 8372761d..07a45bb0 100644 --- a/django_facebook/api.py +++ b/django_facebook/api.py @@ -501,7 +501,7 @@ def _make_username(cls, username): # consider the username min and max constraints slugified_name = slugified_name[:30] - if len(username) < 4: + if len(slugified_name) < 4: slugified_name = None return slugified_name