mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-05 22:14:45 +00:00
Add on_delete to BlogPageTag model
This commit is contained in:
parent
39d5672c9c
commit
6c7d0abad7
2 changed files with 6 additions and 1 deletions
|
|
@ -270,6 +270,7 @@ Contributors
|
|||
* Christopher Bledsoe (The Motley Fool)
|
||||
* Florent Osmont
|
||||
* J Rob Gant
|
||||
* Mary Kate Fain
|
||||
|
||||
Translators
|
||||
===========
|
||||
|
|
|
|||
|
|
@ -581,7 +581,11 @@ First, alter ``models.py`` once more:
|
|||
|
||||
|
||||
class BlogPageTag(TaggedItemBase):
|
||||
content_object = ParentalKey('BlogPage', related_name='tagged_items')
|
||||
content_object = ParentalKey(
|
||||
'BlogPage',
|
||||
related_name='tagged_items',
|
||||
on_delete=models.CASCADE
|
||||
)
|
||||
|
||||
|
||||
class BlogPage(Page):
|
||||
|
|
|
|||
Loading…
Reference in a new issue