a private attribute so it shouldn't be depended upon
2012/2/28 akaariai <akaariai@gmail.com>:
> On Feb 28, 6:30 am, dizzydoc <htc.karanagar...@gmail.com> wrote:
>> Hi django users,
>>
>> I have just migrated my projected from django 1.2.7 to django 1.3.
>>
>> I am receiving the following error while saving an object from admin.
>>
>> "model_name" object has no attribute '_adding'
>>
>> I am getting this error in clean method of some of my models where i
>> use it the following way:
>>
>> def clean( self ):
>> from django.core.exceptions import ValidationError
>> if self._adding: (do this)
>> else: (do this)
>>
>> Please help if you have any clue, while i search for the fix.
>
> The _adding variable was moved to ModelState. So, above should read:
> if self._state.adding:
>
> - Anssi
>
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>
--
Andrés Reyes Monge
armonge@gmail.com
+(505)-8873-7217
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment