Opened 19 years ago

Closed 16 years ago

Last modified 13 years ago

#957 closed defect (fixed)

A SlugField with prepopulate_from does not work for stacked or tabular edit_inline objects.

Reported by: matt Owned by: xian
Component: contrib.admin Version: newforms-admin
Severity: normal Keywords: nfa-someday
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I noticed this over the weekend and haven't had a chance to look at it much further. Here's an example:

class InlineObject(meta.Model):
    name = meta.CharField(maxlength=200, core=True)
    slug = meta.SlugField(prepopulate_from=(("name"),), core=True)
    otherobj = meta.ForeignKey(Otherobj, edit_inline=meta.STACKED, num_in_admin=2)

In the admin for Otherobj the javascript slugification does not work for the InlineObjects.

Change History (6)

comment:1 by Gary Wilson <gary.wilson@…>, 18 years ago

Triage Stage: UnreviewedAccepted

comment:2 by James Bennett, 17 years ago

Owner: changed from nobody to xian
Version: newforms-admin

Reassigning to xian since he's working on JS for newforms-admin and should ensure that this is fixed :)

comment:3 by Brian Rosner, 17 years ago

Keywords: nfa-someday added

Tagging with nfa-someday as this is functionality that is not critical to the merge of the newforms-admin branch. However, I see this as something pretty simple to include before merging and would be nice to fix.

comment:4 by Jeff Anderson, 17 years ago

milestone: 1.0

comment:5 by Brian Rosner, 16 years ago

Resolution: fixed
Status: newclosed

(In [8385]) Fixed #957 -- prepopulated_fields now works correctly on inlines.

comment:6 by Jacob, 13 years ago

milestone: 1.0

Milestone 1.0 deleted

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