Django

Code

Ticket #957 (new)

Opened 2 years ago

Last modified 5 months ago

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

Reported by: matt Assigned to: xian
Component: Admin interface 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.


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




Change Properties
Action