Fix various issues with the move to UIDs

This commit is contained in:
2010-03-09 22:01:44 +00:00
parent 818b580e89
commit 522fbdc9f8
4 changed files with 10 additions and 7 deletions

View File

@@ -24,7 +24,7 @@ class ServiceUsernameField(forms.CharField):
def clean(self, request, initial=None):
field = super(ServiceUsernameField, self).clean(request)
try:
acc = ServiceAccount.objects.get(username=field)
acc = ServiceAccount.objects.get(service_uid=field)
except ServiceAccount.DoesNotExist:
return field
else: