A small refactor to use the SMS_TYPE and EMAIL_TYPE in code rather that 'sms' or 'email'

This commit is contained in:
Rebecca Law
2016-06-30 15:41:51 +01:00
parent a26d2a2551
commit 3f11447bc8
6 changed files with 10 additions and 7 deletions

View File

@@ -293,7 +293,7 @@ class Job(db.Model):
created_by_id = db.Column(UUID(as_uuid=True), db.ForeignKey('users.id'), index=True, nullable=False)
VERIFY_CODE_TYPES = ['email', 'sms']
VERIFY_CODE_TYPES = [EMAIL_TYPE, SMS_TYPE]
class VerifyCode(db.Model):