Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

When deleting an entire site, pages get deleted but plugins don't #1578

Closed
kux opened this Issue · 1 comment

2 participants

@kux

Reproduced in django-cms 2.3.3

Steps to reproduce:
1. create a site
2. create a page in the new site
3. create a plugin in the new page
4. delete the site

Expected:
both page and plugin get deleted

Actual:
page gets deleted, plugin doesn't

This seems to happen due to the fact that pagemodel.Page.delete doesn't get called when performing site deletions, probably due to the pages being bulk deleted (see https://docs.djangoproject.com/en/dev/topics/db/queries/#deleting-objects)

@digi604
Collaborator

we would probably need a signal listener there... or something.

@digi604 digi604 added this to the 3.0 milestone
@digi604 digi604 referenced this issue from a commit in digi604/django-cms
@digi604 digi604 fixes #1578 2f102ea
@digi604 digi604 closed this in #2672
@yakky yakky referenced this issue from a commit in yakky/django-cms
@yakky yakky Test for #1578 65d4471
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.