I know django-tagging has the Tag model and the TaggedItem model. I wonder
if it would be possible to create the Many to Many relationship between your
Articles and this TaggedItem model, through a Ratings intermediary table. I
have no idea if that would work (and keep all the django-tagging features),
but that's something you can look into.

Best,
Paulo

On Mon, Mar 22, 2010 at 3:21 AM, Victor Hooi <victorh...@gmail.com> wrote:

> Paolo,
>
> Thanks for the quick reply =).
>
> I did think of that, just using a M2M, however, that means I lose all
> of the inherent features of django-tagging. For our case, that would
> probably be things like helpers to do auto-complete for tags,
> automatically parsing form inputs with commas into tags, tag-clouds
> etc.
>
> Is there any way to somehow leverage off django-tagging? Or am I
> better of starting from scratch on this?
>
> Cheers,
> Victor
>
> On Mar 22, 1:54 pm, Paulo Almeida <igcbioinformat...@gmail.com> wrote:
> > A possible solution would be to create a Many To Many relationship
> between
> > articles and companies, with an intermediary model holding the ratings:
> >
> > http://docs.djangoproject.com/en/dev/topics/db/models/#extra-fields-o...
> >
> > - Paulo
> >
> >
> >
> > On Mon, Mar 22, 2010 at 2:41 AM, Victor Hooi <victorh...@gmail.com>
> wrote:
> > > heya,
> >
> > > I have a small Django app we're writing to hold reviews of newspaper
> > > articles.
> >
> > > With each article, there's an arbitrary number of companies or
> > > keywords associated with those articles. And for each of those
> > > companies/keywords, there's either a rating (out of 10), or possibly
> > > no rating (i.e. Null).
> >
> > > I was thinking of using django-tagging to add tags to each article,
> > > but I'm not sure how on the best way to extend it to add in the
> > > ratings. Should I somehow add a field to the tag model? I have a
> > > feeling that's a very broken/improper way of doing things. Or is there
> > > a better way of achieving what I want to do within Django?
> >
> > > Cheers,
> > > Victor
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Django users" group.
> > > To post to this group, send email to django-us...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> <django-users%2bunsubscr...@googlegroups.com<django-users%252bunsubscr...@googlegroups.com>
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/django-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to