Code

Opened 7 years ago

Closed 7 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:

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

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by ubernostrum

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.