﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
7219	edit_inline=models.TABULAR	ogiaquino@…	nobody	"Hello authors can you please help me with this code:

class Choice(models.Model):
    poll = models.ForeignKey(Poll, edit_inline=models.TABULAR, num_in_admin=3)
    choice = models.CharField(max_length=200, core=True)
    votes = models.IntegerField(core=True)

    def __unicode__(self):
        return self.choice

while im trying to add choice I get an error message saying:

TypeError at /admin/polls/poll/add/
'int' object is unsubscriptable

i think edit_inline=models.TABULAR is the culprit, if I remove this and use inline class like this:

class Admin:
    pass

everything is working fine. Please help me on correcting this, is this a Django bug?

Thanks and regards,
Paulo :-)"		closed	Documentation	dev		invalid			Unreviewed	0	0	0	0	0	0
