app/soc/views/user/profile.py
changeset 135 a7ccde9d9eed
parent 131 3db97cf7f2c7
child 136 a95f511bfcf8
--- a/app/soc/views/user/profile.py	Fri Sep 12 10:56:21 2008 +0000
+++ b/app/soc/views/user/profile.py	Fri Sep 12 16:33:04 2008 +0000
@@ -55,8 +55,7 @@
     link_name = self.cleaned_data.get('link_name')
     if not id_user.isLinkNameFormatValid(link_name):
       raise forms.ValidationError("This link name is in wrong format.")
-    elif not id_user.doesLinkNameBelongToId(link_name):
-      # link_name exists in Datastore but doesn't belong to current user
+    elif not id_user.checkLinkNameForId(link_name):
       raise forms.ValidationError("This link name is already in use.")
     return link_name