Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django ImageField core=False in newforms admin

In the transition to newforms admin I'm having difficulty figuring out how specify core=False for ImageFields.

I get the following error:

TypeError: __init__() got an unexpected keyword argument 'core'

[Edit] However, by just removing the core argument I get a "This field is required." error in the admin interface on attempted submission. How does one accomplish what core=False is meant to do using newforms admin?

like image 328
cdleary Avatar asked Aug 29 '08 09:08

cdleary


1 Answers

To get rid of "This field is required," you need to make it not required, by using blank=True (and possibly null=True as well, if it's not a CharField).

like image 126
Carl Meyer Avatar answered Oct 18 '22 17:10

Carl Meyer