Better OneToOneField handling in Admin Interface desired
|Reported by:||wam-djangobug@…||Owned by:||nobody|
|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|
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 (10)
comment:1 Changed 6 years ago by jacob
- Triage Stage changed from Unreviewed to Accepted
- Version set to newforms-admin
comment:4 Changed 6 years ago by brooks.travis@…
- Cc evh293@…, erwin@…, robillard.etienne@…, ekellner@…, someone@…, philipp@…, cmawebsite@…, wonlay@…, brooks.travis@… added
comment:6 Changed 3 years ago by lrekucki
- Severity changed from normal to Normal
- Type changed from enhancement to New feature