validate_blob: Add new 'code' goldtype.

This commit is contained in:
Brian Simpson
2014-02-13 15:24:58 -05:00
parent 93283123ad
commit 470efd24c4

View File

@@ -1191,7 +1191,7 @@ def validate_blob(custom):
giftmessage = payment_blob.get('giftmessage')
giftmessage = _force_unicode(giftmessage) if giftmessage else None
ret['giftmessage'] = giftmessage
elif goldtype not in ('onetime', 'autorenew', 'creddits'):
elif goldtype not in ('onetime', 'autorenew', 'creddits', 'code'):
raise GoldException('bad goldtype')
return ret