mirror of
https://github.com/Llloooggg/WhereToGo.git
synced 2026-03-06 04:36:22 +03:00
Базовая карта
This commit is contained in:
11
wheretogo/maps/serializers.py
Normal file
11
wheretogo/maps/serializers.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from rest_framework_gis import serializers
|
||||
|
||||
from maps.models import Facility
|
||||
|
||||
|
||||
class FacilitySerializer(serializers.GeoFeatureModelSerializer):
|
||||
class Meta:
|
||||
|
||||
fields = ("id", "name", "address", "city")
|
||||
geo_field = "location"
|
||||
model = Facility
|
||||
Reference in New Issue
Block a user