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 Aman Sharma)

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.

A pop-up fired when an enitity type was selected from the drop-down.

Once an object is selected, it will automatically populate entity_object_id with the selected object's ID.

Change History (2)

by Aman Sharma, 5 years ago

A pop-up fired when an enitity type was selected from the drop-down.

comment:1 by Aman Sharma, 5 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top