Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian New Member Process
nm.debian.org
Commits
5b6ad991
Commit
5b6ad991
authored
Mar 13, 2012
by
Enrico Zini
Browse files
Allow to lookup people by fingerprint
parent
88d80fef
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/models.py
View file @
5b6ad991
...
...
@@ -155,6 +155,8 @@ class Person(models.Model):
try
:
if
"@"
in
key
:
return
cls
.
objects
.
get
(
email
=
key
)
elif
len
(
key
)
>
32
:
return
cls
.
objects
.
get
(
fpr
=
key
)
else
:
return
cls
.
objects
.
get
(
uid
=
key
)
except
cls
.
DoesNotExist
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment