Skip to content

Commit

Permalink
Merge pull request #1176 from centerofci/uppercase-db-types-in-db-typ…
Browse files Browse the repository at this point in the history
…es-endpoint

Uppercase db types in db types endpoint
  • Loading branch information
dmos62 committed Mar 17, 2022
2 parents 08f5c83 + 9f7675b commit fbdfe75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mathesar/api/serializers/db_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ class DBTypeSerializer(serializers.Serializer):

def to_representation(self, db_type):
return {
"id": db_type.value,
# TODO solve db type casing holistically
# https://github.com/centerofci/mathesar/issues/1036
"id": db_type.value.upper(),
"hints": db_types_hinted.get(db_type, None),
}

0 comments on commit fbdfe75

Please sign in to comment.