File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ class Meta:
173
173
]
174
174
175
175
expandable_fields = {
176
- 'config' : (BuildConfigSerializer , { 'source' : 'config' } )
176
+ 'config' : (BuildConfigSerializer ,)
177
177
}
178
178
179
179
def get_finished (self , obj ):
@@ -275,7 +275,7 @@ class Meta:
275
275
276
276
expandable_fields = {
277
277
'last_build' : (
278
- BuildSerializer , { 'source' : 'last_build' }
278
+ BuildSerializer ,
279
279
)
280
280
}
281
281
@@ -569,12 +569,11 @@ class Meta:
569
569
]
570
570
571
571
expandable_fields = {
572
+ # NOTE: this has to be a Model method, can't be a
573
+ # ``SerializerMethodField`` as far as I know
572
574
'active_versions' : (
573
575
VersionSerializer ,
574
576
{
575
- # NOTE: this has to be a Model method, can't be a
576
- # ``SerializerMethodField`` as far as I know
577
- 'source' : 'active_versions' ,
578
577
'many' : True ,
579
578
}
580
579
)
@@ -954,7 +953,7 @@ class Meta:
954
953
RemoteOrganizationSerializer , {'source' : 'organization' }
955
954
),
956
955
'projects' : (
957
- ProjectSerializer , {'source' : 'projects' , ' many' : True }
956
+ ProjectSerializer , {'many' : True }
958
957
)
959
958
}
960
959
You can’t perform that action at this time.
0 commit comments