0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-24 19:17:48 +01:00

Add missing import to tutorial BlogPage example (#11426)

This commit is contained in:
Salvo Polizzi 2024-01-07 18:27:15 +01:00 committed by Matt Westcott
parent eade6be969
commit 6f9aadc86d
4 changed files with 5 additions and 2 deletions

View File

@ -60,6 +60,7 @@ Changelog
* Docs: Add more nuance to the database recommendations in performance page (Jadesola Kareem)
* Docs: Add clarity that MultipleChooserPanel may require a chooser viewset and how the functionality is expected to work (Andy Chosak)
* Docs: Clarify where documentation build commands should be run (Nikhil S Kalburgi)
* Docs: Add missing import to tutorial BlogPage example (Salvo Polizzi)
* Maintenance: Update BeautifulSoup upper bound to 4.12.x (scott-8)
* Maintenance: Migrate initialization of classes (such as `body.ready`) from multiple JavaScript implementations to one Stimulus controller `w-init` (Chiemezuo Akujobi)
* Maintenance: Adopt the usage of of translate string literals using `arg=_('...')` in all `wagtailadmin` module templates (Chiemezuo Akujobi)

View File

@ -778,6 +778,7 @@
* Nandini Arora
* Sai Srikar Dumpeti
* Nikhil S Kalburgi
* Salvo Polizzi
## Translators

View File

@ -351,6 +351,7 @@ You can now access the URL, <http://127.0.0.1:8000/blog> on your site. This give
Now create a model and template for your blog posts. Edit `blog/models.py` to include:
```python
from django.db import models
from wagtail.models import Page
from wagtail.fields import RichTextField
from wagtail.admin.panels import FieldPanel
@ -358,8 +359,7 @@ from wagtail.admin.panels import FieldPanel
# add this:
from wagtail.search import index
# Keep the definition of BlogIndexPage model, and add the BlogPage model:
# keep the definition of BlogIndexPage model, and add the BlogPage model:
class BlogPage(Page):
date = models.DateField("Post date")

View File

@ -89,6 +89,7 @@ The admin interface now supports right-to-left languages, such as Persian, Arabi
* Add more nuance to the database recommendations in [](performance_overview) (Jadesola Kareem)
* Add clarity that [`MultipleChooserPanel`](multiple_chooser_panel) may require a chooser viewset and how the functionality is expected to work (Andy Chosak)
* Clarify where documentation build commands should be run (Nikhil S Kalburgi)
* Add missing import to tutorial BlogPage example (Salvo Polizzi)
### Maintenance