-
-
Notifications
You must be signed in to change notification settings - Fork 624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
taggit.models.TaggedItem.DoesNotExist in PostgreSQL #692
Comments
I had the same problem when I used the UUID field for the primary key. |
Thanks for the suggestion, but unluckily that should not be the problem, since the class TwitterUser has an integer as primary key:
|
I suggest you not set the primary key, use Django to support for that, and don't forget to migrate |
I can't do that : ( |
I confirm that using BigIntegerField solves the problem #693 |
this can be solved by using a Custom Tag (or rather, a custom through model). With custom tags you have loads of flexibility on your data store, so you don't end up with these kinds of nasty issues. |
I am using BigIntField as a primary key but getting the error.. |
Hello, I have deployed the same application both locally with a SQLite db and on a production server using apache and PostgreSQL. I have a piece of code that adds tags to objects (I have added some logger.debug calls for debugging):
The above piece of code works perfectly on SQLite. When moving to PostgreSQL, however, I get the error
taggit.models.TaggedItem.DoesNotExist: TaggedItem matching query does not exist.
The object exists, as it can be seen by the below stack trace, where it is correctly printed by the above debugging instructions.
It is also taggable, as the following is the first line of the class declaration:
Stacktrace:
The text was updated successfully, but these errors were encountered: