dlamotte / django-tagging

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

ModelForm ask object_id on save() #151

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
class Page(models.Model):
    title = models.CharField(max_length=1000)
    tags = TagField()

class PageForm(forms.ModelForm):
    class Meta:
        model = Page

>>> from page.models import PageForm
>>> d={'title':'test title', 'body':'test body', 'tags':'test tags t1 t2'}
>>> p=PageForm(d)
>>> p.save()
...(snip)...
OperationalError: (1048, "Column 'object_id' cannot be null")

Did I anything wrong?

Original issue reported on code.google.com by kei...@gmail.com on 17 Aug 2008 at 12:29

GoogleCodeExporter commented 8 years ago
django-tagging r145, django r8419

Original comment by kei...@gmail.com on 17 Aug 2008 at 12:39

GoogleCodeExporter commented 8 years ago
I fixed this by removing the tagging.register(Modelname) in my application

Original comment by mikekrie...@gmail.com on 20 Nov 2008 at 8:59

GoogleCodeExporter commented 8 years ago
confirm:
With register: """tagging_taggeditem.object_id may not be NULL"""
without, it works

Original comment by google-c...@jensdiemer.de on 30 Jul 2009 at 9:31

GoogleCodeExporter commented 8 years ago
Any news to this bug?

Original comment by google-c...@jensdiemer.de on 23 Mar 2010 at 8:56