AC-1040 Work on unified job serializers.

This commit is contained in:
Chris Church
2014-03-25 22:04:37 -04:00
parent 62a74f9c84
commit 8ad72426b4
6 changed files with 311 additions and 256 deletions

View File

@@ -219,8 +219,9 @@ class Project(UnifiedJobTemplate, ProjectOptions):
@classmethod
def _get_unified_job_field_names(cls):
return ['local_path', 'scm_type', 'scm_url', 'scm_branch',
'scm_clean', 'scm_delete_on_update', 'credential']
return ['name', 'description', 'local_path', 'scm_type', 'scm_url',
'scm_branch', 'scm_clean', 'scm_delete_on_update',
'credential']
def save(self, *args, **kwargs):
new_instance = not bool(self.pk)