From 8414e638ec3acf5060721b0cd07a438aca1e17a6 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sat, 2 Mar 2013 09:18:04 -0600 Subject: [PATCH] fixed problem with keyed tables, thanks Denes --- VERSION | 2 +- gluon/dal.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 2d958aae..7c50b22d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.4.1-alpha.2+timestamp.2013.03.01.12.45.23 +Version 2.4.1-alpha.2+timestamp.2013.03.02.09.17.16 diff --git a/gluon/dal.py b/gluon/dal.py index ecd6111a..231d54a9 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -808,6 +808,8 @@ class BaseAdapter(ConnectionPool): constraint_name = constraint_name, # should be quoted foreign_key = '%s (%s)' % (rtablename, rfieldname), + table_name = table_name, + field_name = field_name, on_delete_action=field.ondelete) else: # make a guess here for circular references