Hello

I am new in Django

This is the code Iwrote

       u = User.objects.get(username = "zeev")
        form = UserForm(instance = u)
        p = u.userprofile_set.all()
        form1 = UserProfileForm(instance = p)

this is the error that Django display

     '_QuerySet' object has no attribute '_meta'

I know it because p instance base on relate record. When p was extract
directly with no relate object no error displayed.

Can some one send me an example code how iI can display forms with
relate data.

Can you post also a sample code of a template that let me move through
the record update, delete or add them.

Thanks
Zeev

--~--~---------~--~----~------------~-------~--~----~
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