Re: Looking for some insight into a tiny piece of the django codebase

2012-03-19 Thread Carl Meyer
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)

Re: Looking for some insight into a tiny piece of the django codebase

2012-03-19 Thread Jeremy Dunck
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

Looking for some insight into a tiny piece of the django codebase

2012-03-19 Thread Tim Diggins
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