Fix model definition
This commit is contained in:
parent
ab60aaf9b8
commit
26b1c3e8af
|
|
@ -57,7 +57,7 @@ class BasicKnowledge(StrictHierarchyPage):
|
||||||
|
|
||||||
content_panels = [
|
content_panels = [
|
||||||
FieldPanel('title', classname="full title"),
|
FieldPanel('title', classname="full title"),
|
||||||
FieldPanel('type'),
|
FieldPanel('new_type'),
|
||||||
FieldPanel('intro'),
|
FieldPanel('intro'),
|
||||||
StreamFieldPanel('contents')
|
StreamFieldPanel('contents')
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,10 @@ class InstrumentNode(DjangoObjectType):
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = BasicKnowledge
|
model = BasicKnowledge
|
||||||
filter_fields = ['slug', 'type']
|
filter_fields = ['slug']
|
||||||
interfaces = (relay.Node,)
|
interfaces = (relay.Node,)
|
||||||
only_fields = [
|
only_fields = [
|
||||||
'slug', 'title', 'intro', 'type', 'contents',
|
'slug', 'title', 'intro', 'contents',
|
||||||
]
|
]
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue