Hi,

let's assume the following simple model:

class Child(models.Model):
    father = models.ForeignKey(Adult, related_name="father")
    mother = models.ForeignKey(Adult, related_name="mother")

class Adult(models.Model):
    name = models.CharField(max_length=255)

Now, if I try to delete an Adult object in the admin, only "fathers" warn 
about their children as related objects. If I delete a "mother" with a 
related Child object, then there is no warning about related objects and 
their children silently get deleted as well.

Is this a bug in the admin application or am I missing something to make 
this work as intended?

Cheers.

PS: I'm running 1.0.2 


--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to