Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#2547 closed defect (duplicate)

"blank=True" and "default" don't work correctly when create_object page doesn't submit field

Reported by: jeff@… Owned by: adrian
Component: Database layer (models, ORM) Version: master
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

In both the stable 0.95 and svn version, an IntegerField (and most likely everything else) will not use the "default" value when "blank=True", if the input field is not included on the generic view create_object page. Instead, it'll try and pass it directly to the database as null, which will cause an error, as null is not valid.

Instead, the default value should be used, and there should be no errors.

Change History (1)

comment:1 Changed 9 years ago by anonymous

  • Resolution set to duplicate
  • Status changed from new to closed

After some searching, I found ticket #1207.

http://code.djangoproject.com/ticket/1207

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