Update serializers to remove empty choices, provide default values for fields, and better indicate the field type when possible for OPTIONS requests and browsable API docs.

This commit is contained in:
Chris Church
2015-05-11 18:25:30 -04:00
parent 27b06313a7
commit e017270201
6 changed files with 73 additions and 29 deletions

View File

@@ -203,6 +203,7 @@ class Project(UnifiedJobTemplate, ProjectOptions):
)
scm_update_cache_timeout = models.PositiveIntegerField(
default=0,
blank=True,
)
@classmethod