Hi all,

using newforms how do you initialize an _edit_ form bound to a
particular object?

Say i got a PersonForm that i want to be bound to object JonDoeObject
which has more than 30 fields, what's the shortest way to do it?

I tried the hackish way with no success:

p
<Person: Marchl Kathi>
inspect.getmembers(p)
Traceback (most recent call last):
 File "<console>", line 1, in ?
 File "c:\python24\lib\inspect.py", line 171, in getmembers
   value = getattr(object, key)
 File
"C:\Python24\lib\site-packages\django\db\models\manipulators.py", line
30, in __get__
   raise AttributeError, "Manipulator cannot be accessed via instance"
AttributeError: Manipulator cannot be accessed via instance


Thanks,
Lorenzo


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to