diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-05-30 01:11:27 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-05-30 01:11:27 +0000 |
| commit | d3b1a9ba3923848e35152f5826e6967a85be9468 (patch) | |
| tree | d33fa75fd46f5b777b6544ae792bb6cfff668259 | |
| parent | 037f8d580407ecf346041a4cbc7f7bf9492378a4 (diff) | |
Fixed #2015 -- Fixed sqlinitialdata regexp to handle empty string insertions. Thanks, Steven Armstrong
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3003 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/core/management.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/core/management.py b/django/core/management.py index 8e8133f443..f7bbf29227 100644 --- a/django/core/management.py +++ b/django/core/management.py @@ -334,8 +334,8 @@ def get_sql_initial_data_for_model(model): r"""( # each statement is... (?: # one or more chunks of ... (?:[^;'"]+) # not the end of a statement or start of a quote - | (?:'[^']+') # something in single quotes - | (?:"[^"]+") # something in double quotes + | (?:'[^']*') # something in single quotes + | (?:"[^"]*") # something in double quotes )+)""", re.VERBOSE) # Find custom SQL, if it's available. |
