From ac2b9f2a3fd2a6c8dd3f87a6302b7d3f2ef73a0a Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 20 Jul 2007 06:28:56 +0000 Subject: 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 --- django/db/backends/postgresql/creation.py | 1 - 1 file changed, 1 deletion(-) (limited to 'django/db/backends/postgresql/creation.py') diff --git a/django/db/backends/postgresql/creation.py b/django/db/backends/postgresql/creation.py index 4646b68ab8..fde094de7f 100644 --- a/django/db/backends/postgresql/creation.py +++ b/django/db/backends/postgresql/creation.py @@ -16,7 +16,6 @@ DATA_TYPES = { 'ImageField': 'varchar(100)', 'IntegerField': 'integer', 'IPAddressField': 'inet', - 'ManyToManyField': None, 'NullBooleanField': 'boolean', 'OneToOneField': 'integer', 'PhoneNumberField': 'varchar(20)', -- cgit v1.3