Re: Admin debugging delete

2015-12-20 Thread Mike Dewhirst
On 21/12/2015 6:03 PM, James Schneider wrote: I haven't tested this, but I think that will end up looking for False (the 'not' applying to 'instance' rather than the 'in' operation) in self.deleted_objects, which means saving would be broken entirely. It

Re: Question re django.forms.models.BaseModelFormSet.save_existing_objects()

2015-12-20 Thread Mike Dewhirst
On 21/12/2015 6:10 PM, James Schneider wrote: I have just been digging into django.forms.models.py to debug my own code and found something which confuses me in both 1.8 and 1.9 django.forms.models.BaseModelFormSet.save_existing_objects() puts

Re: Question re django.forms.models.BaseModelFormSet.save_existing_objects()

2015-12-20 Thread James Schneider
> > I have just been digging into django.forms.models.py to debug my own code > and found something which confuses me in both 1.8 and 1.9 > > django.forms.models.BaseModelFormSet.save_existing_objects() puts objects > (child model instances) into the BaseModelFormSet.deleted_objects list > whether

Re: Admin debugging delete

2015-12-20 Thread James Schneider
> I haven't tested this, but I think that will end up looking for False >> (the 'not' applying to 'instance' rather than the 'in' operation) in >> self.deleted_objects, which means saving would be broken entirely. >> > > It certainly looks nicer. But it didn't break saving so I assume it means >

Por que Django não é tão popular quanto Ruby on Rails?

2015-12-20 Thread Diego Matar
Por favor, alguém pode dar uma boa resposta para esta pergunta lá no Qanda: >> Por que Django não é tão popular quanto Ruby on Rails? -- You received this message because you are subscribed to the Google

Question re django.forms.models.BaseModelFormSet.save_existing_objects()

2015-12-20 Thread Mike Dewhirst
I have just been digging into django.forms.models.py to debug my own code and found something which confuses me in both 1.8 and 1.9 django.forms.models.BaseModelFormSet.save_existing_objects() puts objects (child model instances) into the BaseModelFormSet.deleted_objects list whether they are

Re: django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet when using django-role-permission package

2015-12-20 Thread karim bernardet
Using the branch "django19" fixed the problem. Sorry or the noise Karim Le dimanche 20 décembre 2015 00:06:38 UTC+1, karim bernardet a écrit : > > Hi > > I am a new user with Django. I am trying to use the django-role-permission > package but I have the error below : > > [karim@localhost gfmt]$

Re: Admin debugging delete

2015-12-20 Thread Mike Dewhirst
On 20/12/2015 4:30 PM, James Schneider wrote: > Â Â for instance in instances: > Â Â Â Â if not instance in self.deleted_objects: > Â Â Â Â Â Â instance.modified_by = request.user > Â Â Â Â Â Â instance.save() > > ... but that didn't do anything. Shouldn't that be: if