Code

Opened 6 years ago

Closed 6 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: UI/UX:

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 (0)

Change History (3)

comment:1 Changed 6 years ago by adrian

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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

  • Resolution invalid deleted
  • Status changed from closed to 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 Changed 6 years ago by russellm

  • Resolution set to invalid
  • Status changed from reopened to 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.