> class CategoryAdmin(admin.ModelAdmin):
> list_display = ('name')
> list_filter = ('name')
> admin.site.register(Category, CategoryAdmin)
>
> But that fails with 'CategoryAdmin.list_display' must be a list or tuple.
>
use: list_display = ('name',)
Note the trailing comma, there
On Thu, Nov 29, 2012 at 12:34 PM, Bill Freeman wrote:
>
>
> On Thu, Nov 29, 2012 at 12:30 PM, Larry Martell
> wrote:
>>
>> On Thu, Nov 29, 2012 at 10:43 AM, Bill Freeman wrote:
>> >
>> >
>> > On Thu, Nov 29, 2012 at 9:10 AM, Larry Martell
>> > wrote:
>> >>
>> >> This is probably very simple, bu
On Thu, Nov 29, 2012 at 12:30 PM, Larry Martell wrote:
> On Thu, Nov 29, 2012 at 10:43 AM, Bill Freeman wrote:
> >
> >
> > On Thu, Nov 29, 2012 at 9:10 AM, Larry Martell
> > wrote:
> >>
> >> This is probably very simple, but I've never run into this before and
> >> googling has not revealed anyt
On Thu, Nov 29, 2012 at 10:43 AM, Bill Freeman wrote:
>
>
> On Thu, Nov 29, 2012 at 9:10 AM, Larry Martell
> wrote:
>>
>> This is probably very simple, but I've never run into this before and
>> googling has not revealed anything.
>>
>> I have these 2 models:
>>
>> class Category(models.Model):
>
On Thu, Nov 29, 2012 at 9:10 AM, Larry Martell wrote:
> This is probably very simple, but I've never run into this before and
> googling has not revealed anything.
>
> I have these 2 models:
>
> class Category(models.Model):
> class Meta: db_table = 'data_category'
> name = models.CharFiel
This is probably very simple, but I've never run into this before and
googling has not revealed anything.
I have these 2 models:
class Category(models.Model):
class Meta: db_table = 'data_category'
name = models.CharField(max_length=20, unique=True, db_index=True)
class Tool(models.Model
6 matches
Mail list logo