snippet: http://www.djangosnippets.org/snippets/1148/
This snippet is exactly what I need, however, I am having difficulty
understanding how to render the fields so that they contain the values
from the instance object. I setup the form
according to the sidebar instructions.
I pass the form to the template as: form = ModelPostForm(obj, None, i)
where:
obj = user object
i = the object with values I want to display in the form
In the class FieldAccessForm, the variables have these values:
request_user:john
*args (None, <User: david>)
**kwargs {}
because kwargs is empt, y the line instance=kwargs.get
('instance',None) never receives a value.
I cannot seem to determine what I am doing wrong ?
Any assistance is greatly appreciated.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---