LoginSignup
0
0

More than 1 year has passed since last update.

Python int too large to convert to SQLite INTEGER

Posted at

Python int too large to convert to SQLite INTEGER

のエラーが出た場合(自分はiduuidにしてdjango-taggitを使ったら出た)

解決

from taggit.managers import TaggableManager
from taggit.models import GenericUUIDTaggedItemBase, TaggedItemBase

class UUIDTaggedItem(GenericUUIDTaggedItemBase, TaggedItemBase):
    class Meta:
        verbose_name = _("Tag")
        verbose_name_plural = _("Tags")

class Hoge(models.Model):
    tags = TaggableManager(blank=True, through=UUIDTaggedItem)

throughで中間テーブルを変更したらいけた。
verbose_nameとかは適当に変えてください。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0