Django

Code

Ticket #7223 (closed: invalid)

Opened 2 months ago

Last modified 3 weeks ago

invalid input syntax for integer: ""

Reported by: vladimirkotulskiy@gmail.com Assigned to: nobody
Milestone: Component: Database wrapper
Version: SVN Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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: ""

Attachments

Change History

06/11/08 22:58:07 changed by adrian

  • status changed from new to closed.
  • needs_better_patch changed.
  • resolution set to invalid.
  • needs_tests changed.
  • needs_docs changed.

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.

06/15/08 17:07:44 changed by Casufi

  • status changed from closed to reopened.
  • resolution deleted.

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/

06/15/08 19:03:55 changed by russellm

  • status changed from reopened to closed.
  • resolution set to invalid.

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.


Add/Change #7223 (invalid input syntax for integer: "")




Change Properties
Action