Does anyone know where in the admin changeview the fields in a ModelForm is
populated with the information from the database? I was hoping to override
one of the fields in a subclassed ModelForm.__init__(), e.g.:

self.base_fields[field_name].initial = 'foo'

But the population appears to be happening farther down the chain, as 'foo'
is overwritten with the value from the database.

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to