示例#1
0
class PendudukModelSchema(ma.ModelSchema):
    class Meta:
        model = Penduduk
        include_fk = True

    fk_region_id = None
    tanggal_lahir = CustomDateTime(format='penduduk',
                                   allow_none=True,
                                   missing=True)
    region = ma.Nested(RegionModelSchema, many=False, exclude=('parent', ))
示例#2
0
class DataModelSchema(ma.ModelSchema):
    class Meta:
        model = Data
        include_fk = True

    region = ma.Nested(RegionModelSchema, many=False, exclude=('parent', ))
示例#3
0
class SummaryModelSchema(ma.ModelSchema):
    class Meta:
        model = Summary
        include_fk = True

    region = ma.Nested(RegionCompleteModelSchema, many=False)
示例#4
0
class ApbdesModelSchema(ma.ModelSchema):
    class Meta:
        model = Apbdes
        include_fk = True

    region = ma.Nested(RegionCompleteModelSchema, many=False)
示例#5
0
class PendudukModelSchemaIso(ma.ModelSchema):
    class Meta:
        model = Penduduk
        include_fk = True

    region = ma.Nested(RegionModelSchema, many=False, exclude=('parent', ))
示例#6
0
class RegionCompleteModelSchema(ma.ModelSchema):
    class Meta:
        model = Region
        include_fk = True

    parent = ma.Nested('self', many=False)