On Tue, Apr 20, 2010 at 10:22:17AM -0400, Stephen Gallagher wrote:
> === modified file 'fedora/django/auth/models.py'
> --- fedora/django/auth/models.py      2010-04-19 20:56:48 +0000
> +++ fedora/django/auth/models.py      2010-04-20 14:19:07 +0000
> @@ -122,4 +122,6 @@
>      objects = FasUserManager()
>  
>      def get_full_name(self):
> -        return self.name.strip()
> +        if self.name:
> +            return self.name.strip()
> +        return self.username.strip()
> 
Would we rather return username or empty string (u"") in case of error?

-Toshio

Attachment: pgpxLLNP4X0P3.pgp
Description: PGP signature

_______________________________________________
infrastructure mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

Reply via email to