> I have realized models.CharFields have a fixed widget (input type...).
> Is it possible to modify the size of the widget with css?
http://www.djangoproject.com/documentation/admin_css/
Firebug is great for trying out CSS changes in real-time.
--
P.U. Gonzalo Delgado <gonzalo...@fortix.com.ar>
http://djangopeople.net/gonzalo/
>
> On Aug 1, 11:13 am, bcurtu <bcu...@gmail.com> wrote:
>> I have realized models.CharFields have a fixed widget (input
>> type...).
>> Is it possible to modify the size of the widget with css?
>>
>> Cheers.
I actually felt like all the charfields and textareas in Forms were
too small (must have gotten used to the old admin), and I went and
changed the source code. Hardly counts as a hack, I think, as it was
only two spots...
>
> Hi all,
>
> Thanks for your answers.
> Daniel: I can not try that code right now, but I think the attribute
> widget is not valid in models.CharField. Anyway, I will try it on
> monday...
> Eric: You're right. I have alredy "hacked" in this way. However it's
> not a good solution, because next time we sync to django we will loose
> our changes!
Thanks to the miracle of versioning software, you should be okay. Are
you using subversion? When you run 'svn up', there shouldn't be any
conflicts unless the new version of trunk contains changes to the
exact line that you edited in the source code. When you update your
code, run 'svn status -u' first to see if there are updates to the
file which you've modified. If so, take a closer look at the updates
to see if they'll create a conflict...
Yours,
Eric