*****SORRY**** My previous message was incomplete *******
I'm trying to make the input textbox of a raw_id_fields wider than the default
size but without success.
Here is what I tried ('codarticolo' is the raw_id_fields):
admin.py
.............
class MovimentomagInline(admin.TabularInline):
formfield_overrides = {
models.CharField: {'widget': TextInput(attrs={'size':'30'})},
models.TextField: {'widget': Textarea(attrs={'rows':4, 'cols':40})},
}
widgets = {
'codarticolo': SelectMultiple(attrs={'size': 30})
}
# list_display = ('codarticolo', 'numconfezioni',
'numerounita','totalepezzi')
raw_id_fields = ['codarticolo',]
fields = ('codarticolo', 'numconfezioni', 'numerounita','totalepezzi')
model=Movimentomag
extra=3
What should I do?
Ciao
Vittorio
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.