Django

Code

Ticket #957 (closed: fixed)

Opened 4 years ago

Last modified 2 years ago

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

Reported by: matt Assigned to: xian
Milestone: 1.0 Component: django.contrib.admin
Version: newforms-admin Keywords: nfa-someday
Cc: Triage Stage: Accepted
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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.

Attachments

Change History

02/26/07 10:53:41 changed by Gary Wilson <gary.wilson@gmail.com>

  • stage changed from Unreviewed to Accepted.

09/16/07 06:43:16 changed by ubernostrum

  • owner changed from nobody to xian.
  • version set to newforms-admin.

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

12/07/07 17:25:38 changed by brosner

  • keywords set to nfa-someday.

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.

06/17/08 01:43:26 changed by programmerq

  • milestone set to 1.0.

08/15/08 12:38:41 changed by brosner

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #957 (A SlugField with prepopulate_from does not work for stacked or tabular edit_inline objects.)




Change Properties
Action