When looking at the example given in the overview.txt file for django-
voting (http://django-voting.googlecode.com/svn/trunk/docs/
overview.txt), they give the following:

"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(widget, user, +1)"

Where is the Widget class supposed to be imported from?  I see the
path that they are defining, but the model doesn't seem to be
installed with django-voting or django itself.  Is that a model and
class that I need to create myself?  If so, can someone offer an
example of how to do this.

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