From 9bf7a7423a155fbbd42714be0d5e18ad4b069985 Mon Sep 17 00:00:00 2001 From: Dan Hayden Date: Wed, 5 Oct 2022 12:08:07 +0100 Subject: [PATCH] Documentation - Fix register_snippet import path typo --- CONTRIBUTORS.rst | 1 + docs/topics/snippets.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index 9eb9a40c60..72d69d1378 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -628,6 +628,7 @@ Contributors * Shohan Dutta Roy * Alex (sashashura) * Adinapunyo Banerjee +* Dan Hayden Translators diff --git a/docs/topics/snippets.md b/docs/topics/snippets.md index f3672965b4..57ae91b611 100644 --- a/docs/topics/snippets.md +++ b/docs/topics/snippets.md @@ -458,7 +458,7 @@ Then, pass the viewset to the `register_snippet` call. ```python # wagtail_hooks.py -from wagtail.snippets.model import register_snippet +from wagtail.snippets.models import register_snippet from myapp.models import Member from myapp.views import MemberViewSet