Hello, everyone!

I'd like to remove some object with many-to-many relationship from
Django admin interface. Standard removing also removes all related
objects and the list of removed objects displayed on confirmation
page. But I don't need to remove related objects!

Assume we have ContentTopic and ContentItem:

class ContentTopic(models.Model):
    name = models.CharField()
    code = models.CharField()

class ContentItem(models.Model):
    topic = models.ManyToManyField(ContentTopic, db_index=True,
blank=True, related_name='content_item')

So, I'd like to remove ContentTopic instance using Django admin, but I
don't need remove all related ContentItems. So, confirmation page
should display only ContentTopic instance to remove.

What is the best way to handle this?


Alexey Rudy

/////

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to