]> git.ozlabs.org Git - patchwork/commit
Support postgresql_psycopg2 DATABASE_ENGINE
authorNate Case <ncase@xes-inc.com>
Fri, 22 Aug 2008 20:58:05 +0000 (15:58 -0500)
committerJeremy Kerr <jk@ozlabs.org>
Sat, 23 Aug 2008 03:04:35 +0000 (11:04 +0800)
commit7451e16588d2de6bce18fcc60b3be654ee591ac1
treed1bb37c8877ab7f6f38c8b053fcbe29adf288119
parent05d26756d7e7f254d5631a0649aeac5fd3a58ca8
Support postgresql_psycopg2 DATABASE_ENGINE

Check for "postgresql*" rather than just "postgresql" in
HashField.db_type() so that postgresql_psycopg2 will work.

While we're here, raise an exception if the database engine is
unknown rather than silently not returning anything.

Signed-off-by: Nate Case <ncase@xes-inc.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/models.py