Saturday, October 29, 2011

how to customize delete confirmation page on deleting related objects

Hello,

I'm having troubles when deleting related objects.

class Article has:
related_articles = models.ManyToManyField
tags = models.ManyToManyField
....

class Attachments has:
models.ForeignKey(Article....


1. I would like to customize delete confirmation page to show(list)
related data.
(when deleting an article - show related articles and attachments etc)
2. I would like to have a possibility to define whether to delete
attachment files also.

Found something about signals and pre_delete, or delete() method of
models.Model ....

Thanks in advance!

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

No comments:

Post a Comment