Skip to content

Commit

Permalink
fix new geostore 1.0.0 choices
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed Jan 12, 2024
1 parent d585ba9 commit 8d9504f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion project/geosource/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class Status(models.IntegerChoices):

id_field = models.CharField(max_length=255, default="id")
geom_type = models.IntegerField(
choices=GeometryTypes.choices(), null=True, blank=True
choices=GeometryTypes.choices, null=True, blank=True
)

settings = models.JSONField(default=dict, blank=True)
Expand Down
2 changes: 1 addition & 1 deletion project/geosource/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ class CSVSourceSerializer(FileSourceSerializer):
coordinates_field_count = serializers.CharField(required=False)
coordinates_separator = serializers.CharField(required=False)
geom_type = serializers.ChoiceField(
default=GeometryTypes.Point, choices=GeometryTypes.choices()
default=GeometryTypes.Point, choices=GeometryTypes.choices
)

class Meta:
Expand Down

0 comments on commit 8d9504f

Please sign in to comment.