| 1266 | |
| 1267 | |
| 1268 | class LocationDetailSerializer(serializers.ModelSerializer): |
| 1269 | region = RegionSummarySerializer() |
| 1270 | names = LocationNameSerializer(many=True, read_only=True, source="locationname") |
| 1271 | game_indices = LocationGameIndexSerializer( |
| 1272 | many=True, read_only=True, source="locationgameindex" |
| 1273 | ) |
| 1274 | areas = LocationAreaSummarySerializer( |
| 1275 | many=True, read_only=True, source="locationarea" |
| 1276 | ) |
| 1277 | |
| 1278 | class Meta: |
| 1279 | model = Location |
| 1280 | fields = ("id", "name", "region", "names", "game_indices", "areas") |
| 1281 | |
| 1282 | |
| 1283 | ######################### |
nothing calls this directly
no test coverage detected