My favorites | Sign in
Project Home Wiki Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions

Issue 110 attachment: django-evolution-sql-to-list.patch (486 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Index: mutations.py
===================================================================
--- mutations.py (Revision 166)
+++ mutations.py (Arbeitskopie)
@@ -145,7 +145,10 @@
class SQLMutation(BaseMutation):
def __init__(self, tag, sql, update_func=None):
self.tag = tag
- self.sql = sql
+ if isinstance(sql, basestring):
+ self.sql=[sql]
+ else:
+ self.sql = sql
self.update_func = update_func

def __str__(self):
Powered by Google Project Hosting