﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
7903	Javascript errors with prepopulated_fields in admin	ElliottM	Jacob	"When I set the prepopulated_fields property in my ModelAdmin, I get the following Javascript error (as reported by firebug):
{{{
None is not defined
onkeyup() (line 149)
if (!e._changed) { e.value = URL...ntById(""id_description"").value, None); }
http://127.0.0.1/admin/network/path/add/
}}}

My model:
{{{
class Path(models.Model):
	circuit_id=	models.CharField(max_length=16, db_index=True, unique=True)
	
	description=models.CharField(max_length=64)
	comments=	models.TextField(blank=True)
	speed=		models.CharField(max_length=8, blank=True)
	
	in_use=		models.BooleanField(db_index=True)
}}}

The ModelAdmin for that model:
{{{
class PathAdmin(admin.ModelAdmin):
	list_display=('circuit_id','description','comments','speed','in_use')
	list_filter=('in_use',)
	search_fields=('circuit_id',)
	prepopulated_fields= {'comments':('description',)}
}}}

The error results in the comments field not being prepopulated.
This happens both on my Mac 10.5 running Firefox 2.0.0.11 and my Kubuntu Hardy computer running Firefox 3.0"		closed	contrib.admin	dev		fixed	admin javascript prepopulated fields prepopulated_fields		Ready for checkin	1	0	0	0	0	0
