i could not able to understand the problem........... after reading one i can quickly tell is
you are not passing keyword arguments so kwargs will be always empty please look at the belowlink for more information: http://www.saltycrane.com/blog/2008/01/how-to-use-args-and-kwargs-in-python/ On Jun 19, 7:40 am, dj <d.a.aberna...@gmail.com> wrote: > 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 django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---