#NEWLINE# @ classmethod #NEWLINE# def serialize( cls , instance , fields = None ) : #NEWLINE# #INDENT# from nailgun.objects.release import Release #NEWLINE# release_dict = super ( ReleaseSerializer , cls ) . serialize ( instance , fields ) #NEWLINE# release_dict [ 'is_deployable' ] = Release . is_deployable ( instance ) #NEWLINE# return release_dict