Browse Source

web/postkey/views.py: remove hash uniqueness check

Not needed until it moved into validation.py
pull/1/head
Hidden Z 14 years ago
parent
commit
dd498acf04
  1. 4
      web/postkey/views.py

4
web/postkey/views.py

@ -30,10 +30,6 @@ class AddForm(ModelForm): @@ -30,10 +30,6 @@ class AddForm(ModelForm):
"""Validate base64 hash"""
data = self.cleaned_data['b64hash']
data = validate_b64hash(data)
# Avoid adding non-unique hashes
qs = i2phost.objects.filter(b64hash=data)
if qs.exists():
raise forms.ValidationError('Base64 hash must be unique')
return data
def addkey(request):

Loading…
Cancel
Save