Fix model definition
This commit is contained in:
parent
ab60aaf9b8
commit
26b1c3e8af
|
|
@ -57,7 +57,7 @@ class BasicKnowledge(StrictHierarchyPage):
|
|||
|
||||
content_panels = [
|
||||
FieldPanel('title', classname="full title"),
|
||||
FieldPanel('type'),
|
||||
FieldPanel('new_type'),
|
||||
FieldPanel('intro'),
|
||||
StreamFieldPanel('contents')
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue