blog/app/models/figures.py
def save(self, verbose=True):
        """ Forces OID lists to be OID lists. """

        for image_list in ['concept_art', 'unpainted', 'tags']:
            corrected_list = []
            for image_oid in getattr(self, image_list, []):
                corrected_list.append(ObjectId(image_oid))
            setattr(self, image_list, corrected_list)

        return super().save(verbose)
 Forces OID lists to be OID lists. 
Forces OID lists to be OID lists.
Forces OID lists to be OID lists .
def save(self, verbose=True):
        for image_list in ['concept_art', 'unpainted', 'tags']:
            corrected_list = []
            for image_oid in getattr(self, image_list, []):
                corrected_list.append(ObjectId(image_oid))
            setattr(self, image_list, corrected_list)
        return super().save(verbose)
def save ( self , verbose = True ) : for image_list in [ 'concept_art' , 'unpainted' , 'tags' ] : corrected_list = [ ] for image_oid in getattr ( self , image_list , [ ] ) : corrected_list . append ( ObjectId ( image_oid ) ) setattr ( self , image_list , corrected_list ) return super ( ) . save ( verbose )
Forces OID lists to be OID lists.
Forces OID lists to be OID lists .
""" Forces OID lists to be OID lists. """
self
verbose