[Fixed]-Django upgrade from 1.2.5 to 1.3 error in admin

0👍

It’s hard to tell exactly what is wrong here.

The error is triggered in a file called filterspecs.py. I suspect that it might be because you have a list filter is_series that is not included in the self.list_display.

Try to comment out the list_filter line, and see if that changes anything.

list_filter = ('start_date', 'is_series')
self.list_display= ['title', 'status', 'start_date', 'tickets_sold', 
                    'tickets_remaining', 'sold_out']

It could also be some bug that was fixed in a later version of django. Since having admin.py files are optional, you could just delete or rename them during the upgrade process until you have fixed other problems. This error might be caused by a problem that was fixed in a later version of django.

1👍

It was actually the start_date field that was causing the problem and I tracked this down to a filter class in the models.py file, with a bit of help from this post:

django admin custom list_filter

thanks for the pointers!

👤James

Leave a comment