Hi to all !
I doesnt undestand where is the problem whit Query set.. (or maybe what is
query_set)

If the models is :


class User(models.Model):
    user = models.CharField(maxlength=12)
    passw = models.CharField(maxlength=20)












I doest undestand this shell session :

>>> User.objects.all()
[<User: pippo>, <User: pippo>]
>>> p.user
Traceback (most recent call last):
  File "<console>", line 1, in <module>
AttributeError: '_QuerySet' object has no attribute 'user'

(doesnt worry about two pippo user name.. for now.. I will fix now)

Where is the error ?

Thanks !

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to