Opened 10 years ago

Closed 10 years ago

#7223 closed (invalid)

invalid input syntax for integer: ""

Reported by: vladimirkotulskiy@… Owned by: nobody
Component: Database layer (models, ORM) Version: master
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


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 Changed 10 years ago by Adrian Holovaty

Resolution: invalid
Status: newclosed

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.

comment:2 Changed 10 years ago by Casufi

Resolution: invalid
Status: closedreopened

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.

comment:3 Changed 10 years ago by Russell Keith-Magee

Resolution: invalid
Status: reopenedclosed

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.

Note: See TracTickets for help on using tickets.
Back to Top