dlamotte / django-tagging

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

tagging + multilingual doesn't work #170

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'm writing about my problem again, to bring your attention I've made my
long report short:

I'm using django-tagging and django-multilingual applications in my
project. Tagging worked ok until I've added multilingual application to the
project, and now I don't know if problem is in tagging or in multilingual.

Here's model class:

class Script(models.Model):
   pub_date = models.DateTimeField()
   slug = models.SlugField(max_length=120)
   tags = TagField()

   class Translation(multilingual.Translation):
       headline = models.CharField(max_length=200)
       description = models.TextField()
       body = models.TextField()

   class Meta:
       ordering = ('-pub_date',)

Then I'm starting manage.py shell command in my project folder and enter
next few lines:

my_tag = Tag.objects.get(name='sometag')
TaggedItem.objects.get_by_model(Script, my_tag)

error appeares - OperationalError: (1054, "Unknown
column'scripts_script.id' in 'on clause'")clause'

all application are at latest svn versions.

Thanks, in advance, for your help.

Original issue reported on code.google.com by sergo.po...@gmail.com on 8 Nov 2008 at 8:28

GoogleCodeExporter commented 8 years ago
I've been thinking that it's a multilingual's problem but have fixed it in 
django
code: here's closed ticked at djangoproject - 
http://code.djangoproject.com/ticket/9536

This workaround works for me, and this issue may be closed.

Original comment by sergo.po...@gmail.com on 12 Nov 2008 at 11:58