After a search ...
i found this
def save(self,data):
Object=objects.get_object(pk=self.id)
for field in self.fields:
if field.field_name+'_id' in Object.__dict__:
actual_field_name=field.field_name+'_id'
else:
actual_field_name=field.field_name
Object.__setattr__(actual_field_name,data[field.field_name])
Object.save()
However Object=objects.get_object(pk=self.id)
raise me this error
global name 'objects' is not defined
/home/greg/Projects/cefinban/recettes/manipulators.py in save, line 39
:/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---