mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-11 12:16:58 +03:00
No need to create a Schema in test_fields.py
This commit is contained in:
parent
0c7be5c86e
commit
e270792674
|
@ -1,21 +1,14 @@
|
|||
from graphene import Schema
|
||||
from graphene.contrib.django import DjangoFilterConnectionField, DjangoNode
|
||||
from graphene.contrib.django.tests.filters import ArticleFilter, PetFilter
|
||||
from graphene.contrib.django.tests.models import Article, Pet
|
||||
|
||||
schema = Schema()
|
||||
|
||||
|
||||
@schema.register
|
||||
class ArticleNode(DjangoNode):
|
||||
|
||||
class Meta:
|
||||
model = Article
|
||||
|
||||
|
||||
@schema.register
|
||||
class PetNode(DjangoNode):
|
||||
|
||||
class Meta:
|
||||
model = Pet
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user