Template Syntax Errors

2010-07-16 Thread Jx
Hi, i'm encountering some weird error in the template of my application. The error enountered was: Traceback: File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/ base.py" in get_response 100. response = callback(request, *callback_args, **callback_kwargs) Fi

Re: One to many django pagination

2010-06-22 Thread jx jx
/#extra-fields-on-many-to-many-relationships> > ). > Then you should be able to do: > > teachers = Teacher.objects.filter(student__name="Jonny") > > I think the ORM should take care of this query for you and select only > those teachers. > > Euan > > On Jun

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

Re: User profile display problem in change user form

2010-04-21 Thread Jx
Thanks Tracey! it works :) yea actually i did the tutorial, i cant believe i missed out that part. Looks like i need more brushing up. On Apr 22, 10:36 am, Karen Tracey wrote: > On Wed, Apr 21, 2010 at 10:20 PM, Jx wrote: > > [snip] > > When i view the change user page, my c

User profile display problem in change user form

2010-04-21 Thread Jx
Hi, i'm new to django and i've met with some problems when i'm trying to display custom fields in the change user admin page. Hope some of u can help me out. 1) I've a country table which is linked the user profile table that i created as below. --