On 13 Mag, 20:10, kilgore <[EMAIL PROTECTED]> wrote:
> I tried this and got:
>
> 13/05/2007> python manage.py shell
> Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
> (Intel)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
> (InteractiveConsole)>>> from foo.polls.models import Poll, Choice
> >>> Poll.objects.all
>
> <bound method Manager.all of <django.db.models.manager.Manager object
> at 0x014CE2D0>>
>
You missed the parentesis.
In this way, you are asking Python what is `Poll.objects.all` and it
answer 'Hey, it's a bound method ecc'
Writing `Poll.objects.all` you are calling the method, and Python will
execute it, returning `[]`, an empty list.
Bye,
Flavio.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---