Opened 17 years ago

Closed 17 years ago

#7223 closed (invalid)

invalid input syntax for integer: ""

Reported by: vladimirkotulskiy@… 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 Adrian Holovaty, 17 years ago

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 by Casufi, 17 years ago

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.
http://dumpz.org/1151/
http://dumpz.org/1152/
http://dumpz.org/1153/

comment:3 by Russell Keith-Magee, 17 years ago

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