mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #2161 -- handle trailing newlines in initial SQL data. Includes
regression test. Thanks to russellm. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3177 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
a513fcb455
commit
3e97535907
5 changed files with 28 additions and 4 deletions
13
tests/regressiontests/initial_sql_regress/models.py
Normal file
13
tests/regressiontests/initial_sql_regress/models.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
"""
|
||||
Regression tests for initial SQL insertion.
|
||||
"""
|
||||
|
||||
from django.db import models
|
||||
|
||||
class Simple(models.Model):
|
||||
name = models.CharField(maxlength = 50)
|
||||
|
||||
API_TESTS = ""
|
||||
|
||||
# NOTE: The format of the included SQL file for this test suite is important.
|
||||
# It must end with a trailing newline in order to test the fix for #2161.
|
Loading…
Add table
Add a link
Reference in a new issue