Better OneToOneField handling in Admin Interface desired
Reported by: |
wam-djangobug@… |
Owned by: |
nobody |
Component:
|
contrib.admin
|
Version:
|
newforms-admin
|
Severity:
|
Normal
|
Keywords:
|
nfa-someday
|
Cc:
|
evh293@…, erwin@…, robillard.etienne@…, ekellner@…, someone@…, philipp@…, cmawebsite@…, wonlay@…, brooks.travis@…, stephane@…
|
Triage Stage:
|
Accepted
|
Has patch:
|
no
|
Needs documentation:
|
no
|
Needs tests:
|
no
|
Patch needs improvement:
|
no
|
Easy pickings:
|
no
|
UI/UX:
|
yes
|
Currently, a one to one relationship renders as a drop down box to select a instance of the related object type. If no object exists of the related type exists, the drop down box is empty with no easy way to create the object. There is no plus mark like there is for ForeignKey.
At the very least, I feel a Plus mark in the user interface associated with the OneToOneField is necessary to make the admin interface usable.
Ideally, since this is a OneToOne relationship, the fields for the related class could be brought directly into the admin interface of the object "extending" the "base" object. I tried specifying edit_inline in my OneToOne field; however, that seemed to want to put my extending class into admin interface of the extended class. If someone creates an object with a OneToOneField, then they are almost certainly want to know and be able to edit the field values of the object that is being extended.
Change History
(11)
Triage Stage: |
Unreviewed → Accepted
|
Version: |
→ newforms-admin
|
Keywords: |
nfa-someday added
|
Cc: |
evh293@… erwin@… robillard.etienne@… ekellner@… someone@… philipp@… cmawebsite@… wonlay@… brooks.travis@… added
|
Severity: |
normal → Normal
|
Type: |
enhancement → New feature
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Just in case anybody wants to work on this too soon: OneToOne has been slightly refactored on the queryset-refactor branch, so if any of these changes need altering of the OneToOneField code, some coordination will be required (e.g. wait until after the merge).