﻿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
2059	attempting to edit_inline an object with a unique field yields TypeError	gJigsaw@…	Adrian Holovaty	"from django.db import models

class Address(models.Model):
    street1 = models.CharField(maxlength=50)
    def __str__(self):
        return self.street1
    class Admin:
        search_fields = ['street1']

class Dog(models.Model):
    address = models.ForeignKey(Address,edit_inline=models.TABULAR)

#   use the following line and it works fine
#    name = models.CharField(maxlength=20,core=True)

#   use the following line with SVN update revision code 3045 to get the following exception
    name = models.CharField(maxlength=20,unique=True,core=True)

#   Exception Value:  	Cannot resolve keyword 'name' into field
#   Exception Location: 	/usr/lib/python2.4/site-packages/django/db/models/query.py in lookup_inner, line 800

    def __str__(self):
        return self.name

# May (or may not) relate to ticket # 565
"	enhancement	closed	Core (Management commands)	new-admin	trivial	duplicate	edit_inline unique TypeError		Unreviewed	0	0	0	0	0	0
