Opened 13 years ago

Closed 13 years ago

#21382 closed New feature (fixed)

stacked inlines should add class "has_original" to existing fields

Reported by: Jacob Rief Owned by: Ryan Kaskel
Component: contrib.admin Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In tabular inlines one can distinguish between new and existing fields, because existing fields add the class has_original to their form row.
In stacked inlines this is not possible, there no such class is added to div.inline-related. This is inconsistent with tabular inlines and makes it impossible to distinguish between new and existing fields.

This PR: ​https://github.com/django/django/pull/1865 fixes it.

Change History (6)

comment:1 by Anssi Kääriäinen, 13 years ago

Triage Stage: Unreviewed → Accepted

comment:2 by Carl Meyer, 13 years ago

Type: Uncategorized → New feature

comment:3 by Tim Graham, 13 years ago

Needs tests: set

comment:4 by Ryan Kaskel, 13 years ago

Owner: changed from nobody to Ryan Kaskel
Status: new → assigned

comment:5 by Ryan Kaskel, 13 years ago

Needs tests: unset

I've created a new pull request with a test for the fix: ​https://github.com/django/django/pull/2249 (the original pull request is here: ​https://github.com/django/django/pull/1865)

comment:6 by Tim Graham <timograham@…>, 13 years ago

Resolution: → fixed
Status: assigned → closed

In d25622000ac8a591101ade28708d3b4b8ae4b24f:

Fixed #21382 - Added "has_original" to stacked inlines.

Report and original patch from jrief.

Note: See TracTickets for help on using tickets.
Back to Top