mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-01 20:14:55 +00:00
Add on_delete to BlogPageTag model
This commit is contained in:
parent
9cb6b33600
commit
a485fb9ef1
2 changed files with 6 additions and 1 deletions
|
|
@ -269,6 +269,7 @@ Contributors
|
|||
* Bruno Alla
|
||||
* Christopher Bledsoe (The Motley Fool)
|
||||
* Florent Osmont
|
||||
* 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