Opened 18 years ago
Closed 17 years ago
#3934 closed (duplicate)
edit_inline foreign key in profile module
Reported by: | 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: | no | UI/UX: | no |
Description
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\query.py in lookup_inner, line 936
I'd really appreciate if you correct this or send me what should I do.
Thank's a lot
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.