Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. def clean_private_key(self):
  2. p_key= self.cleaned_data['private_key']
  3. institute= self.cleaned_data['institute']
  4. if p_key == institute.private_key :
  5. return p_key
  6. else:
  7. raise ValidataionError('Invalid key')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement