Skip to content

Commit

Permalink
feat: auto entry slug (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
csalom authored Aug 23, 2024
1 parent d2bfb0e commit 31a4ffd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Changelog

Unreleased
----------

* EntryPage: auto slug generation from title

2.1.1 (2024-06-25)
------------------
Expand Down
5 changes: 3 additions & 2 deletions puput/abstracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@

from wagtail.admin.panels import (
FieldPanel,
MultiFieldPanel,
InlinePanel,
MultiFieldPanel,
TitleFieldPanel,
)
from wagtail.fields import RichTextField
from modelcluster.contrib.taggit import ClusterTaggableManager
Expand Down Expand Up @@ -125,7 +126,7 @@ class EntryAbstract(models.Model):
content_panels = [
MultiFieldPanel(
[
FieldPanel("title", classname="title"),
TitleFieldPanel("title", classname="title"),
FieldPanel("header_image"),
FieldPanel("body", classname="full"),
FieldPanel("markdown_body"),
Expand Down

0 comments on commit 31a4ffd

Please sign in to comment.