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', ))
class DataModelSchema(ma.ModelSchema): class Meta: model = Data include_fk = True region = ma.Nested(RegionModelSchema, many=False, exclude=('parent', ))
class SummaryModelSchema(ma.ModelSchema): class Meta: model = Summary include_fk = True region = ma.Nested(RegionCompleteModelSchema, many=False)
class ApbdesModelSchema(ma.ModelSchema): class Meta: model = Apbdes include_fk = True region = ma.Nested(RegionCompleteModelSchema, many=False)
class PendudukModelSchemaIso(ma.ModelSchema): class Meta: model = Penduduk include_fk = True region = ma.Nested(RegionModelSchema, many=False, exclude=('parent', ))
class RegionCompleteModelSchema(ma.ModelSchema): class Meta: model = Region include_fk = True parent = ma.Nested('self', many=False)