Re: limit row in change view

2012-05-09 Thread Nenad Cikic
I have managed to solve it by myself so reporting here if anyone is interested. I have checked and the sql Log shows statements are generated with LIMIT clause (postgre). You have to subclass the ChangeList class ass class MyChangeList(ChangeList): def get_query_set(self): return supe

limit row in change view

2012-05-08 Thread Nenad Cikic
Hello! I am trying to undestand how to limit visible rows in change view. It seems to me a common need, but can not find info in django docs. I am using the admin interface. So I have one model and his admin is something as: ordering = ('-datum','krajnjikorisnik','tipimpulse','impulsecijena')