minor - Slight optimization use tablename directly instead of table._tablename

This commit is contained in:
Leonel Câmara
2014-08-02 10:57:02 +01:00
parent 444a09b0b2
commit b788e8b493
+1 -1
View File
@@ -2453,7 +2453,7 @@ class SQLiteAdapter(BaseAdapter):
### special code to handle CASCADE in SQLite & SpatiaLite
if counter:
for field in table._referenced_by:
if field.type == 'reference '+table._tablename \
if field.type == 'reference '+ tablename \
and field.ondelete == 'CASCADE':
db(field.belongs(deleted)).delete()
### end special code to handle CASCADE in SQLite & SpatiaLite