Fix model definition

This commit is contained in:
Ramon Wenger 2021-10-25 12:10:10 +02:00
parent ab60aaf9b8
commit 26b1c3e8af
2 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ class BasicKnowledge(StrictHierarchyPage):
content_panels = [
FieldPanel('title', classname="full title"),
FieldPanel('type'),
FieldPanel('new_type'),
FieldPanel('intro'),
StreamFieldPanel('contents')
]

View File

@ -15,10 +15,10 @@ class InstrumentNode(DjangoObjectType):
class Meta:
model = BasicKnowledge
filter_fields = ['slug', 'type']
filter_fields = ['slug']
interfaces = (relay.Node,)
only_fields = [
'slug', 'title', 'intro', 'type', 'contents',
'slug', 'title', 'intro', 'contents',
]
@staticmethod