You've already forked WhereToGoRedux
mirror of
https://github.com/Llloooggg/WhereToGoRedux.git
synced 2026-03-06 04:56:23 +03:00
init
This commit is contained in:
10
backend/wheretogo/facilities/serializers.py
Normal file
10
backend/wheretogo/facilities/serializers.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from rest_framework_gis import serializers
|
||||
|
||||
from facilities.models import Facility
|
||||
|
||||
|
||||
class FacilitySerializer(serializers.GeoFeatureModelSerializer):
|
||||
class Meta:
|
||||
model = Facility
|
||||
fields = ("id", "name", "address", "city")
|
||||
geo_field = "location"
|
||||
Reference in New Issue
Block a user