Re: two questions about data model

2007-09-15 Thread gt7658b
Thank you, guys. for the charfield question, what I am trying to modify is the backend. So I need to change django.contrib.admin.views.main.add_stage? and also change_stage function? I don't know how to change that function. Is there a way to do it during model definition? Thanks, Harry On Se

Re: two questions about data model

2007-09-15 Thread r_f_d
for the charfield there is a max_length, but for what you are trying to do, you need to set this in the form widget. Take a look at newforms documentation but to point you in the right direction you need to do something like: where f is your form f.base_fields['FIELDNAME'].widget.attrs = {'size'

Re: two questions about data model

2007-09-15 Thread Alex Koshelev
Thereis no `length` argument in Field constructor. Don't use it. Your User already has imagefiel_set attribute, so you have to define another related name for imagefile manager. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

two questions about data model

2007-09-15 Thread Hai Dong
Hello: I am trying to control the html display size of a CharField using length keyword. However, I got the following error when doing syncdb __init__() got an unexpected keyword argument 'length' I am using django svn release. I didn't find length keyword in django document, but learned it fro