mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-08 06:14:47 +03:00
removed contrib.postgres compat shim
This commit is contained in:
parent
d404597e0b
commit
16cc63ffaa
|
@ -128,13 +128,6 @@ def value_from_object(field, obj):
|
|||
field.value_from_object(obj)
|
||||
|
||||
|
||||
# contrib.postgres only supported from 1.8 onwards.
|
||||
try:
|
||||
from django.contrib.postgres import fields as postgres_fields
|
||||
except ImportError:
|
||||
postgres_fields = None
|
||||
|
||||
|
||||
# JSONField is only supported from 1.9 onwards
|
||||
try:
|
||||
from django.contrib.postgres.fields import JSONField
|
||||
|
|
Loading…
Reference in New Issue
Block a user