summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-07-20 06:28:56 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-07-20 06:28:56 +0000
commitac2b9f2a3fd2a6c8dd3f87a6302b7d3f2ef73a0a (patch)
tree478a813ed7eaa4fae4f69c0e497b68df93916dbe /tests
parentf5ef3bec6868cc4e04f2a7816821a44ec104c923 (diff)
Added a db_type() method to the database Field class. This is a hook for calculating the database column type for a given Field. Also converted all management.py CREATE TABLE statements to use db_type(), which made that code cleaner. The Field.get_internal_type() hook still exists, but we should consider removing it at some point, because db_type() is more general. Also added docs -- the beginnings of docs on how to create custom database Field classes. This is backwards-compatible.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5725 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions