Django

Code

Ticket #3259 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

[patch] prepopulate_from doesn't work with underscores

Reported by: rob.slotboom@wanadoo.nl Assigned to: adrian
Milestone: Component: django.contrib.admin
Version: 0.95 Keywords:
Cc: gary.wilson@gmail.com Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

prepopulate.diff (0.7 kB) - added by Gary Wilson <gary.wilson@gmail.com> on 01/10/07 23:53:41.
patch is not tested, but uses \w in the regex of characters to exclude. \w is short for [a-zA-Z0-9_].

Change History

01/10/07 23:51:23 changed by Gary Wilson <gary.wilson@gmail.com>

Underscore is not excluded in the "remove unneeded chars" regex.

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

  • 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_].

01/10/07 23:54:18 changed by Gary Wilson <gary.wilson@gmail.com>

  • summary changed from prepopulate_from doesn't work with underscores to [patch] prepopulate_from doesn't work with underscores.

01/10/07 23:54:31 changed by Gary Wilson <gary.wilson@gmail.com>

  • cc set to gary.wilson@gmail.com.

01/15/07 12:06:11 changed by Gary Wilson <gary.wilson@gmail.com>

just tested patch and underscores do work with the attached patch.

01/24/07 11:37:38 changed by mir@noris.de

  • stage changed from Unreviewed to Ready for checkin.

Thanks, Gary!

02/17/07 00:14:23 changed by mtredinnick

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

(In [4537]) Fixed #3259 -- Fixed problem with prepopulate_from for fields containing underscores in their name. Patch from Gary Wilson.


Add/Change #3259 ([patch] prepopulate_from doesn't work with underscores)




Change Properties
Action