Example #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',))
Example #2
0
class DataModelSchema(ma.ModelSchema):
    class Meta:
        model = Data
        include_fk = True

    region = ma.Nested(RegionModelSchema, many=False, exclude=('parent',))
Example #3
0
class PendudukModelSchemaIso(ma.ModelSchema):
    class Meta:
        model = Penduduk
        include_fk = True

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

    parent = ma.Nested('self', many=False)
Example #5
0
class ApbdesModelSchema(ma.ModelSchema):
    class Meta:
        model = Apbdes
        include_fk = True

    region = ma.Nested(RegionCompleteModelSchema, many=False)
Example #6
0
class BoundaryModelSchema(ma.ModelSchema):
    class Meta:
        model = Boundary
        include_fk = True

    region = ma.Nested(RegionModelSchema, many=False, exclude=('parent', ))
Example #7
0
class StatisticModelSchema(ma.ModelSchema):
    class Meta:
        model = Statistic
        include_fk = True

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

    region = ma.Nested(RegionCompleteModelSchema, many=False)