[debexpo-devel] [debexpo/master] Added uploader action to?PackagesController.
Jonny Lamb
jonnylamb at jonnylamb.com
Tue Jun 17 15:15:03 CEST 2008
On Tue, Jun 17, 2008 at 02:43:55PM +0200, Christoph Haas wrote:
> Isn't .first() simpler in this case? It returns None if there are no
> results or otherwise the single row. That would spare you the try/except.
More useful information. Thanks! I was unaware of this behaviour of
first(). It doesn't make sure there is only one user with the
specified email address, but that should really go on a different level.
Thanks,
--
Jonny Lamb, UK jonnylamb at jonnylamb.com
http://jonnylamb.com GPG: 0x2E039402
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://workaround.org/pipermail/debexpo-devel/attachments/20080617/efda2565/attachment.pgp
More information about the debexpo-devel
mailing list