straight55b / app-engine-patch

Automatically exported from code.google.com/p/app-engine-patch
0 stars 0 forks source link

StringListProperty displays incorrectly in forms #168

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
class Test(db.Model):
    items = db.StringListProperty()
class TestForm(forms.ModelForm):
    class Meta:
        model = Test
def test(request):
    form = TestForm()
    return render_to_response('test.html', {'form':form})

What is the expected output? What do you see instead?
StringListProperty should be displayed as a textarea (multi-line) with an 
initial value of ''. app-engine-patch causes it to instead be displayed as 
a textinput (single-line) with an initial value of '[]'. This means that 
multiple elements cannot be specified (as list elements are delimited by 
newlines).

What version of the product are you using? On what operating system?
Ubuntu, 1.0.2.1 - but the issue seems to exist in the repository version as 
well.

Please provide any additional information below.
I've attached a patch that fixes the issue.

Original issue reported on code.google.com by dvd...@gmail.com on 21 Jun 2009 at 12:30

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks! Fixed in repo.

Original comment by wkornew...@gmail.com on 22 Jun 2009 at 7:13