I have a model Item
class Item(models.Model):id = models.IntegerField(primary_key=True)title = models.CharField(max_length=140, blank=True)description = models.TextField(blank=True)price = models.DecimalField(max_digits=12, decimal_places=2, blank=True, null=True)
and my model admin
class ItemAdmin(admin.ModelAdmin):list_display = ['item_view', 'description', 'item_price', 'seller_view', 'added_on']actions = ['add_to_staff_picks']search_fields = ('description', 'title')def item_view(self, obj):item = objurl = reverse('admin:%s_%s_change' % ('adminuser', 'item'), args=(item.id,))if item.is_active:return '<font color="green">%s</font>' % (base64.b64decode(item.title))return '<font color="red">%s</font>' % (base64.b64decode(item.title))item_view.allow_tags = Trueitem_view.short_description = 'Title'
and I need to show the field 'title' wrapped in my Django admin site(fix a width for title column) . How can I achieve that. please help.