zzm88 / django-voting

Automatically exported from code.google.com/p/django-voting
Other
0 stars 0 forks source link

overview.txt show wrong syntax #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
overview.txt says:
<blockquote>
Votes are recorded using the ``record_vote`` helper function::

    >>> from django.contrib.auth.models import User
    >>> from shop.apps.products.models import Widget
    >>> from voting.models import Vote
    >>> user = User.objects.get(pk=1)
    >>> widget = Widget.objects.get(pk=1)
    >>> Vote.objects.record_vote(user, widget, +1)
</blockquote>

last line should be:

    >>> Vote.objects.record_vote(widget, user, +1)

Original issue reported on code.google.com by flavio.c...@gmail.com on 27 Aug 2007 at 1:25

GoogleCodeExporter commented 8 years ago
Thanks - good spot!

Fixed in r59.

Original comment by jonathan.buchanan on 28 Aug 2007 at 1:13