Re: m2m admin relationship selector with filter_horizontal and large datasets

2014-12-11 Thread James Y
rticleAdmin: > raw_id_fields = ['categories'] > > Or as an inline: > class CategoryInline(models.TabularInline): > model = Article.categories.through > extra = 0 > raw_id_fields = ['category'] > > Collin > > On Wednesday, December 10, 201

m2m admin relationship selector with filter_horizontal and large datasets

2014-12-09 Thread James Y
I have a Category model that is m2m with an Article model and need to make categories selectable in my article admin. So I'm using a filter_horizontal and the problem is that I have thousands of categories and do not want to load them all into the left hand side (lhs) of filter_horizontal. Is t

Re: Return to paginated ListView page after update

2014-09-15 Thread James Y
rn reverse('editor_listview', kwargs={'page': self.page_number}) On Friday, September 12, 2014 12:23:52 PM UTC-10, James Y wrote: > > It must be more simple than the nothingness that searching google is > showing me... how can I to get back to the last page (say page 2

Return to paginated ListView page after update

2014-09-12 Thread James Y
It must be more simple than the nothingness that searching google is showing me... how can I to get back to the last page (say page 2: http://127.0.0.1:8000/articlelist/2, which works) in a ListView after an UpdateView. I can go to a random page - 10 in the below UpdateView - but how do I ca