Hi Tim,
On 03/19/2012 05:17 PM, Tim Diggins wrote:
> I'm wondering what the lines at the end of django/db/models/
> deletion.py do:
>
> for model, instances in self.data.iteritems():
> for instance in instances:
> setattr(instance, model._meta.pk.attname, None)
On Mon, Mar 19, 2012 at 11:17 PM, Tim Diggins wrote:
> Hi -
>
> I'm wondering what the lines at the end of django/db/models/
> deletion.py do:
>
> for model, instances in self.data.iteritems():
> for instance in instances:
> setattr(instance, model._meta.pk.attname
Hi -
I'm wondering what the lines at the end of django/db/models/
deletion.py do:
for model, instances in self.data.iteritems():
for instance in instances:
setattr(instance, model._meta.pk.attname, None)
They're at the end of the delete method from Collector c