Opened 11 years ago

Closed 11 years ago

#3934 closed (duplicate)

edit_inline foreign key in profile module

Reported by: vojtmen@… Owned by: nobody
Component: contrib.admin Version: 0.95
Severity: Keywords: profile, user, module
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


Example of error:

class MyUserProfile(models.Model):

user = models.ForeignKey(User, unique=True, edit_inline=models.TABULAR, db_index=True)
some_data = models.CharField(maxlength=20, blank=False, null=False, unique=True, core=True)

Then some_data is correctly shown in User module of admin menu, but when you try to change it and save it:

Request URL: http://localhost/printeq/admin/auth/user/1/
Exception Type: TypeError
Exception Value: Cannot resolve keyword 'some_data' into field
Exception Location: C:\Server\Python\lib\site-packages\django\db\models\ in lookup_inner, line 936

I'd really appreciate if you correct this or send me what should I do.

Thank's a lot

Change History (1)

comment:1 Changed 11 years ago by James Bennett

Resolution: duplicate
Status: newclosed

This really feels like a variation of the underlying problem fixed in #1796; please re-open if you can still reproduce it on current trunk.

Note: See TracTickets for help on using tickets.
Back to Top