Merge pull request #473 from alphagov/api-key-type

key_types table
This commit is contained in:
Leo Hemsted
2016-06-27 15:02:52 +01:00
committed by GitHub
12 changed files with 159 additions and 81 deletions

View File

@@ -165,6 +165,7 @@ class NotificationsStatisticsSchema(BaseSchema):
class ApiKeySchema(BaseSchema):
created_by = field_for(models.ApiKey, 'created_by', required=True)
key_type = field_for(models.ApiKey, 'key_type', required=True, missing=models.KEY_TYPE_NORMAL)
class Meta:
model = models.ApiKey