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
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
2 matches
Mail list logo