#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 )
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.
Attachments (1)
Change History (4)
by , 6 years ago
| Attachment: | Screenshot from 2019-12-31 03-41-12.png added |
|---|
comment:1 by , 6 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 6 years ago
| Component: | contrib.contenttypes → contrib.admin |
|---|---|
| Resolution: | → duplicate |
| Status: | new → closed |
| Summary: | Avoid manual selection of `entity_object_id` when attaching a Generic Relation to a model → Add selectable pop-up for GenericForeignKey to contrib.dmin. |
| Triage Stage: | Unreviewed → Accepted |
| Version: | 2.2 → master |
Duplicate of #9976.
comment:3 by , 6 years ago
| Summary: | Add selectable pop-up for GenericForeignKey to contrib.dmin. → Add selectable pop-up for GenericForeignKey to contrib.admin. |
|---|

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