mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-02-25 16:15:16 +03:00
Fixed Django 1.8 issue
This commit is contained in:
parent
28db2c0506
commit
335339c7a8
|
@ -9,7 +9,7 @@ import graphene
|
|||
from graphene.relay import Node
|
||||
|
||||
from ..utils import DJANGO_FILTER_INSTALLED
|
||||
from ..compat import MissingType, RangeField
|
||||
from ..compat import MissingType, JSONField
|
||||
from ..fields import DjangoConnectionField
|
||||
from ..types import DjangoObjectType
|
||||
from .models import Article, Reporter
|
||||
|
@ -100,7 +100,7 @@ def test_should_query_well():
|
|||
assert result.data == expected
|
||||
|
||||
|
||||
@pytest.mark.skipif(RangeField is MissingType,
|
||||
@pytest.mark.skipif(JSONField is MissingType,
|
||||
reason="RangeField should exist")
|
||||
def test_should_query_postgres_fields():
|
||||
from django.contrib.postgres.fields import IntegerRangeField, ArrayField, JSONField, HStoreField
|
||||
|
|
Loading…
Reference in New Issue
Block a user