Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #2015 -- Fixed sqlinitialdata regexp to handle empty string ins…

…ertions. Thanks, Steven Armstrong

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3003 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d3b1a9ba3923848e35152f5826e6967a85be9468 1 parent 037f8d5
@adrianholovaty adrianholovaty authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/core/management.py
View
4 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.
Please sign in to comment.
Something went wrong with that request. Please try again.