Re: One to many django pagination

2010-06-22 Thread jx jx
Oh, i guess i didn't define my models using the "through" relationship. Thanks for the help! :) On Tue, Jun 22, 2010 at 4:10 PM, euan.godd...@googlemail.com < euan.godd...@gmail.com> wrote: > If i understand you correctly you've got a couple of solutions. You > can define a "through" relationship

Re: One to many django pagination

2010-06-22 Thread euan.godd...@googlemail.com
If i understand you correctly you've got a couple of solutions. You can define a "through" relationship between Student and Teacher usinf Techer_profile as the "through" table (http://docs.djangoproject.com/ en/dev/topics/db/models/#extra-fields-on-many-to-many-relationships). Then you should be ab

One to many django pagination

2010-06-21 Thread Jx
Hi, i recently encountered a problem due to inefficient performance of django pagination. After researching, i realized that there is a need to use django database queries when dealing with django-pagination as "LIMIT" will automatically be added. This is useful especially when dealing with huge c