converter.py: Fix typo posgres->postgres (#765)

Fixes typo for HStoreField and RangeField
converters.
This commit is contained in:
rishabh 2019-09-23 01:40:21 +05:30 committed by Jonathan Kim
parent 0962db5aa6
commit cd73cab699

View File

@ -235,12 +235,12 @@ def convert_postgres_array_to_list(field, registry=None):
@convert_django_field.register(HStoreField)
@convert_django_field.register(JSONField)
def convert_posgres_field_to_string(field, registry=None):
def convert_postgres_field_to_string(field, registry=None):
return JSONString(description=field.help_text, required=not field.null)
@convert_django_field.register(RangeField)
def convert_posgres_range_to_string(field, registry=None):
def convert_postgres_range_to_string(field, registry=None):
inner_type = convert_django_field(field.base_field)
if not isinstance(inner_type, (List, NonNull)):
inner_type = type(inner_type)