kopia lustrzana https://github.com/wagtail/wagtail
Add on_delete to BlogPageTag model
rodzic
39d5672c9c
commit
6c7d0abad7
|
@ -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):
|
||||
|
|
Ładowanie…
Reference in New Issue