How to change a TabularInline widget size

2009-01-08 Thread Luis Miguel Morillas
When I use a TabularInline class, type text inputs haven't a correct size, so I'm getting too large lines for input: How can I add a size attribute to this input?. I want size to have the maxlength value. This is my code: class BidonInline(admin.TabularInline): model = Bidon class

How to add a info on the many side of a foreingkey with admin

2008-09-01 Thread Luis Miguel Morillas
I'm working with admin and a model as the following: class Publisher(models.Model): name = models.CharField(maxlength=30) [snip] class Book(models.Model): title = models.CharField(maxlength=100) publisher = models.ForeignKey(Publisher, blank=True) [snip] I can add a