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

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

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

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

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

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

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

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