Skip to content

Commit

Permalink
update app: use the utils_flask_sqla_geo package and adapt ENUM type …
Browse files Browse the repository at this point in the history
…which was not serializable
  • Loading branch information
nobohan committed Jul 17, 2023
1 parent b06eec9 commit 6f51f92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/gncitizen/core/commons/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class ProjectModel(TimestampMixinModel, db.Model):
def __repr__(self):
return self.name

class GeometryTypeEnum(enum.Enum):
class GeometryTypeEnum(str, enum.Enum):
POINT = 'point'
LINESTRING = 'ligne'
POLYGON = 'polygone'
Expand Down

0 comments on commit 6f51f92

Please sign in to comment.