0

I'm using django-tagging. It works fine when I want 1 tag collection for the model. But now i need to use 2 different collections, somehow like this:

class Compare(models.Model):
    title = models.CharField(max_length=255)

    left_tags  = TagField()
    right_tags = TagField()

Is it possible with tagging? I hope somebody has an example and will share it! Thanks! :)

Timmy O'Mahony
  • 53,000
  • 18
  • 155
  • 177
Krizsán Balazs
  • 386
  • 1
  • 4
  • 18

1 Answers1

2

does TagField take a optional related_name attribute you could use?

https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ForeignKey.related_name

I've never used this app myself, but thats the django-ish way of solving this.

Francis Yaconiello
  • 10,829
  • 2
  • 35
  • 54
  • related_name is not working with this field. It looks like not supperted yet. There is a issue about it here: http://code.google.com/p/django-tagging/issues/detail?id=115&q=multiple. And a "hack" solution for handling it. – Krizsán Balazs Jul 09 '12 at 20:25