-
Notifications
You must be signed in to change notification settings - Fork 104
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
invalid literal for int() with base 10: 'F' #44
Comments
Interesting. This should not happen, because of:
django-reversion-compare/reversion_compare/admin.py Lines 135 to 136 in fedc44d
So you have a model that doesn't use a number ans primary key... But why is "has_int_pk" true?!? Please post your model. |
Model:
Whole project lives here: https://bitbucket.org/linevich/blog.linevich.net |
Hm. That's look like a normal model. Nothing about a special primary key... Can you run with django-extensions "runserver_plus": http://django-extensions.readthedocs.org/en/latest/runserver_plus.html And figure out more information from traceback. e.g.: These values:
I looked into your source: https://bitbucket.org/linevich/blog.linevich.net/src/f08d681b0840016494065a05222e25b120c12aa9/project/blog/models.py?at=default Category is a MPTTModel... Maybe this is the problematic part?!? |
I removed category field - no result.
|
You must use the interactive part,to get the information see: http://django-extensions.readthedocs.org/en/latest/runserver_plus.html#interactive-debugging-console |
I had this error too, and it seems to be something to do with django-taggit-- for me anyway.
There were some other issues with taggit: #10, not sure if this is related or not, doesn't really look like it is. |
Hello @jedie! I've stucked with this issue too. I've tried to debug code and this is problem that I see (reproduced with model with ManyToMany through field):
If field is ManyToMany-through, then
And my question is: should m2m be contained in Thanks for your appreciation! |
Thanks for this information! |
@jedie it's ok, I'm very glad to contribute. But I need a little more info about expected behavior. m2m-through field should be in |
So spontaneously I do not know the answer ;) |
Ok. Soo-o-o, anyway, thanks for help) |
I am having the same problem |
Same problem here. |
One part of the solution might be using a placeholder object instead of
which gets parsed in a loop at:
|
This avoids storing an ugettext value in self.version. It's value got parsed in `ids = [int(v) for v in self.value]` causing an `int("F")` call that fails. Instead, a sentinal value is introduced that can be recognized in the code, yet output a meaningful message when it's shown to the user. Fixes jedie#44
This avoids storing an ugettext value in self.version. It's value got parsed in `ids = [int(v) for v in self.value]` causing an `int("F")` call that fails. Instead, a sentinal value is introduced that can be recognized in the code, yet output a meaningful message when it's shown to the user. Fixes jedie#44
I was trying to compare two versions and got an error:
The text was updated successfully, but these errors were encountered: