Opened 17 years ago
Closed 17 years ago
#7223 closed (invalid)
invalid input syntax for integer: ""
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I have Django from trunk + mod_wsgi + postgresql 8.2.7 + psycopg 2.0.6
Database encoding UTF8
I am geting error page when am trying to add data to to model with ForeignKey field.
ProgrammingError at /admin/pages/somepage/add/ invalid input syntax for integer: ""
Change History (3)
comment:1 by , 17 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 17 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
I am not sure how I can set value to None instead of empty. I am trying to use default Djang admin page.
Here you can check error message and model.
http://dumpz.org/1151/
http://dumpz.org/1152/
http://dumpz.org/1153/
comment:3 by , 17 years ago
Resolution: | → invalid |
---|---|
Status: | reopened → closed |
If you don't know how to do something, please ask on the django-users mailing list. This ticket database is for tracking _bugs_ not, answering support questions.
Hello there! This isn't a bug in the framework -- it looks like you should be setting the value to None instead of the empty string. Please direct these sorts of support questions to the django-users mailing list.