Documentation - Fix register_snippet import path typo

pull/9089/head
Dan Hayden 2022-10-05 12:08:07 +01:00 zatwierdzone przez LB (Ben Johnston)
rodzic 92407354a9
commit 9bf7a7423a
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -628,6 +628,7 @@ Contributors
* Shohan Dutta Roy
* Alex (sashashura)
* Adinapunyo Banerjee
* Dan Hayden
Translators

Wyświetl plik

@ -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