#16077: syncdb, PostgreSQL: models.IntegerField default value is absent in the
created SQL
-------------------------------------+-------------------------------------
Reporter: | Owner: nobody
maretskiy@… | Status: closed
Type: Bug | Component: Database layer
Milestone: | (models, ORM)
Version: 1.3 | Severity: Normal
Resolution: invalid | Keywords:
Triage Stage: | Has patch: 0
Unreviewed | Needs tests: 0
Needs documentation: 0 | Easy pickings: 0
Patch needs improvement: 0 |
-------------------------------------+-------------------------------------
Changes (by aaugustin):
* status: new => closed
* needs_docs: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_better_patch: => 0
Comment:
The default value can be a value or a callable, so it's not possible to
include it in the generated SQL.
However, it will still be used whenever you create a new instance of your
model.
See https://docs.djangoproject.com/en/1.3/ref/models/fields/#default
--
Ticket URL: <https://code.djangoproject.com/ticket/16077#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.