Hi!
When we delete an object through admin bulk deletion, django deletes all
related objects too. Now imagine that we have these models:

class ModelBase(models.Model):
   pass

class ModelA(models.Model):
   base = models.ForeignKey(ModelBase)

class ModelB(models.Model):
   base = models.ForeignKey(ModelBase)


When we deletes an instance of ModelBase django also deletes related
instances of ModelA and ModelB. And my question is, given an instance of
ModelBase how can we know what model have a relation with it? We need to
query all models of all apps that we have installed? or there are another
approach more 'elegant' in order to achieve this?

thanks!


-- 
Marc

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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