Opened 19 years ago
Closed 19 years ago
#3259 closed defect (fixed)
[patch] prepopulate_from doesn't work with underscores
| Reported by: | Owned by: | Adrian Holovaty | |
|---|---|---|---|
| Component: | contrib.admin | Version: | 0.95 | 
| Severity: | normal | Keywords: | |
| Cc: | gary.wilson@… | Triage Stage: | Ready for checkin | 
| Has patch: | yes | Needs documentation: | no | 
| Needs tests: | no | Patch needs improvement: | no | 
| Easy pickings: | no | UI/UX: | no | 
Description
Using prepopulate_from doesn't work when refering to a fielname containing an underscore (complete_buzz)
Changing the fieldname to a value without an underscore worked.
Attachments (1)
Change History (7)
comment:1 by , 19 years ago
by , 19 years ago
| Attachment: | prepopulate.diff added | 
|---|
patch is not tested, but uses \w in the regex of characters to exclude.  \w is short for [a-zA-Z0-9_].
comment:2 by , 19 years ago
| Summary: | prepopulate_from doesn't work with underscores → [patch] prepopulate_from doesn't work with underscores | 
|---|
comment:3 by , 19 years ago
| Cc: | added | 
|---|
comment:6 by , 19 years ago
| Resolution: | → fixed | 
|---|---|
| Status: | new → closed | 
  Note:
 See   TracTickets
 for help on using tickets.
    
Underscore is not excluded in the "remove unneeded chars" regex.