Hi,

I have a model similar to:

class Phone(meta.Model):
    number = meta.CharField(maxlength=50, null=True)

class Contact(meta.Model):
    phone = meta.ForeignKey(Phone, null=True)
    name = meta.CharField(maxlength=200)

After I have data in, I want to be able to delete a contact's phone. As
soon as I remove phone, it will automatically delete my contact object
too. This would make sense with poll/choice, but not everywhere. What
is the magic keyword for me to ask it to stop messing with me. :)

contacts.get_list()[0].get_phone().delete()

Thanks,
Sia

Reply via email to