#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 , 19 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:2 by , 18 years ago
| Owner: | changed from to |
|---|---|
| Version: | → newforms-admin |
comment:3 by , 18 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 , 17 years ago
| milestone: | → 1.0 |
|---|
comment:5 by , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Reassigning to xian since he's working on JS for newforms-admin and should ensure that this is fixed :)