Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#31131 closed New feature (duplicate)

Add selectable pop-up for GenericForeignKey to contrib.admin.

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.

Attachments (1)

Screenshot from 2019-12-31 03-41-12.png (46.3 KB ) - added by Aman Sharma 4 years ago.
A pop-up fired when an enitity type was selected from the drop-down.

Download all attachments as: .zip

Change History (4)

by Aman Sharma, 4 years ago

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

comment:1 by Aman Sharma, 4 years ago

Description: modified (diff)

comment:2 by Mariusz Felisiak, 4 years ago

Component: contrib.contenttypescontrib.admin
Resolution: duplicate
Status: newclosed
Summary: Avoid manual selection of `entity_object_id` when attaching a Generic Relation to a modelAdd selectable pop-up for GenericForeignKey to contrib.dmin.
Triage Stage: UnreviewedAccepted
Version: 2.2master

Duplicate of #9976.

comment:3 by Mariusz Felisiak, 4 years ago

Summary: Add selectable pop-up for GenericForeignKey to contrib.dmin.Add selectable pop-up for GenericForeignKey to contrib.admin.
Note: See TracTickets for help on using tickets.
Back to Top