Add on_delete to BlogPageTag model

pull/4248/merge
Mary Kate Fain 2018-02-07 13:34:33 -05:00 zatwierdzone przez Matt Westcott
rodzic 39d5672c9c
commit 6c7d0abad7
2 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -270,6 +270,7 @@ Contributors
* Christopher Bledsoe (The Motley Fool)
* Florent Osmont
* J Rob Gant
* Mary Kate Fain
Translators
===========

Wyświetl plik

@ -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):