Thursday, July 24, 2014

Re: Problem in the Tutorial 01


On Thu, Jul 24, 2014 at 3:53 PM, Fabian Zentner <zentner.fabian@googlemail.com> wrote:
Poll.objects.get(pub_date__year=current_year)

try to use
Poll.objects.first()
 you have 2 object and it is a reason of your traceback

Many thanks,

Serge


+380 636150445
skype: skhohlov

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CADTRxJNYz1imQ9i50EnSW9oYzREhT38pmdjbX6gsSqq8vYtJRA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment