We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3295796 commit 9afc038Copy full SHA for 9afc038
bakerydemo/base/models.py
@@ -21,6 +21,7 @@
21
register_setting,
22
)
23
from wagtail.fields import RichTextField, StreamField
24
+from wagtail.images.models import Image
25
from wagtail.models import (
26
Collection,
27
DraftStateMixin,
@@ -37,6 +38,9 @@
37
38
39
from .blocks import BaseStreamBlock
40
41
+# Allow filtering by collection
42
+Image.api_fields = [APIField("collection")]
43
+
44
45
class Person(
46
WorkflowMixin,
0 commit comments