django-mptt/django-mptt — Issue #155: lft and rght not updated when delete items in django admin UI
Author: jetli
Created: 2011-11-05 02:55:03+00:00
State: open

I find some problem when delete items in django admin UI, steps to repro:

1. in item list, select one or more items
2. choose action "Delete selected xxx" from Action dropdown, and click Go button
3. click "Yes I'm sure" button to delete items in "Are you sure?" confirmation page.
4. go to database to see that lft and rght values are not updated at al for remaining items.

but if I go into one item, and try to delete the item from there, then there is no problem.
my code :

```python
class Area(MPTTModel):
name = models.CharField(max_length = 200)
slug = models.SlugField(max_length = 200)
parent = TreeForeignKey('self', null = True, blank = True, related_name = 'children')

def __unicode__(self):
return self.name

class MPTTMeta:
order_insertion_by = ['name']
```

django : 1.3.1
mppt : 0.5
backend : mysql
os : mac os x