Opened 5 years ago
Last modified 5 years ago
#31131 closed New feature
Avoid manual selection of `entity_object_id` when attaching a Generic Relation to a model — at Version 1
Reported by: | Aman Sharma | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | dev |
Severity: | Normal | Keywords: | conttentype |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
Currently, whenever one has to attach a GenericRelation to a model, one has to select the contenttype instance from a drop-down and manually enter the ID of the object of that particular model.
Since my project involved maintaining a model of 10,000 instances, I can't afford to keep track of their IDs so, instead, I created pop-up which fires on selecting the entity_content_type
(similar to raw_id_fields
).
If this can be a feature in Django, let me know. I can submit a patch which can solve this issue.
Once an object is selected, it will automatically populate entity_object_id
with the selected object's ID.
Change History (2)
by , 5 years ago
Attachment: | Screenshot from 2019-12-31 03-41-12.png added |
---|
comment:1 by , 5 years ago
Description: | modified (diff) |
---|
A pop-up fired when an enitity type was selected from the drop-down.