Filtering the filters in Django Admin

2011-02-19 Thread SimpleDimple
Here is my code for a school project http://dpaste.com/434311/ The code works fine, on studentadmin list page, I get filter for classes which is good but as you can see my project is multi-tenant so in filter area I want to show only the classes for the school the current user is logged in (tracke

Re: Best forum/group for Django Help

2011-02-11 Thread SimpleDimple
agree on stackoverflow, not just for django but for many other platforms too... I got a lot of help on rails and others there. On Feb 10, 3:20 pm, Daniel Roseman wrote: > On Wednesday, February 9, 2011 9:06:54 PM UTC, SimpleDimple wrote: > > > Guys, Need to know which is the best for

Re: Best forum/group for Django Help

2011-02-10 Thread SimpleDimple
Not a prank, it was just what I thought..., it is always better to ask than assume...thanks for confirmation that this is the best one around. On Feb 10, 2:08 am, Shawn Milochik wrote: > On 02/09/2011 04:06 PM, SimpleDimple wrote:> Guys, Need to know which is the > best forum/

Best forum/group for Django Help

2011-02-09 Thread SimpleDimple
Guys, Need to know which is the best forum/group for Django help ? I thought this is the one but I don't see much activity here despite of the fact that there are 19000+ members...where do you go for discussing your django issues with people ? -- You received this message because you are subscri

Re: default header template file

2011-02-09 Thread SimpleDimple
ah... I see now...will check it out.. On Feb 9, 4:21 am, Shawn Milochik wrote: > The reason you should use the toolbar is that it will help you > instantly determine which templates are being used, so you know which > ones to edit. > > Shawn -- You received this message because you are subscrib

Re: How To Populate A Dropdown List

2011-02-09 Thread SimpleDimple
did it work Hank ? On Feb 9, 7:47 am, Brian Neal wrote: > On Feb 8, 10:03 am, hank23 wrote: > > > I have coded a form which will display some data in a dropdown > > selection box. The data is being populated from a a queryset that I > > have setup in the form's code. However the entries in the d

Re: Setting session variable at the time of login

2011-02-09 Thread SimpleDimple
n this and I have JIRA project management > and product backlog etc. so perhaps you would be more interested in > working off an existing system. > > On Feb 7, 2:42 pm, SimpleDimple wrote: > > > I am new to django and building a school system but am experience > > develope

Re: How To Populate A Dropdown List

2011-02-08 Thread SimpleDimple
I am new to django so not sure if I am of much help but let me try the key is usually the ID field of your table. for the value to display add a method __str___ in your model, here is sample code from one of my project read more on ___str___ and ___unicode___ methods class Teacher(models.Model):

Re: Filtering List based on a custom dropdown

2011-02-08 Thread SimpleDimple
can anyone help or point me to some simple django based app that I can study to understand more ? On Feb 8, 2:07 am, SimpleDimple wrote: > I can live w/o AJAX for now to keep it simple. > > What I am not clear is on how to do the postback from javascript ?  I > mean on what URL and p

Re: default header template file

2011-02-08 Thread SimpleDimple
Thanks for the link but actually I am not looking for debugging, I just want to add up my own stuff into the header coming from DBcan you help me in that ? On Feb 8, 2:08 am, Shawn Milochik wrote: > This will help you a lot: > > https://github.com/robhudson/django-debug-toolbar > > It shows

Re: Setting session variable at the time of login

2011-02-08 Thread SimpleDimple
Great Pointer - I think this is what I was looking for. On Feb 8, 2:13 am, Shawn Milochik wrote: > 1. You'll have to create your own login view. You can look at Django's > view and just copy it. You can use the built-in authentication and > template and everything, plus whatever else you want to

Re: Sorting list view on based on field from joined table

2011-02-08 Thread SimpleDimple
I understand the model part, I am more concerned about 1) how and which event to capture on server side when header is clicked 2) how to know which column's header was clicked Can you please help. On Feb 8, 2:36 am, Aryeh Leib Taurog wrote: > On Feb 7, 10:50 pm, SimpleDimple wrote: &g

Re: Getting value from session in ModelForm

2011-02-08 Thread SimpleDimple
I understand what you mean about the scope Thanks for the sample code, very helpful, will try it out and let you know. Thanks, On Feb 8, 2:45 pm, Daniel Roseman wrote: > On Monday, February 7, 2011 8:27:55 PM UTC, SimpleDimple wrote: > > > I am new to Django and building a s

Re: Filtering List based on a custom dropdown

2011-02-07 Thread SimpleDimple
PM, SimpleDimple wrote: > > > > > I am new to django and building a school system but am experience > > developer otherwise having firm grip over rails, php, .net and java. > > > I have student table and in list I can see list of all students/ > > records in st

default header template file

2011-02-07 Thread SimpleDimple
I am new to django and building a school system but am experience developer otherwise having firm grip over rails, php, .net and java. When I login, I can see the username of user logged-in in the header... I want to add more info from sessions there, so I am wondering which template file is it fo

Sorting list view on based on field from joined table

2011-02-07 Thread SimpleDimple
I am new to django and building a school system but am experience developer otherwise having firm grip over rails, php, .net and java. I can see the list and do sorting & search but only based on the fields which are in the same table... what if I want to sort on or search on field which is in ano

Setting session variable at the time of login

2011-02-07 Thread SimpleDimple
I am new to django and building a school system but am experience developer otherwise having firm grip over rails, php, .net and java. 1) I am using django admin, I want to set a variable at the time of user login... the user login is coming from django code so I have no idea how to capture "after

Filtering List based on a custom dropdown

2011-02-07 Thread SimpleDimple
I am new to django and building a school system but am experience developer otherwise having firm grip over rails, php, .net and java. I have student table and in list I can see list of all students/ records in student table(pasted below is my code) what I want here is a custom dropdown listi

Getting value from session in ModelForm

2011-02-07 Thread SimpleDimple
I am new to Django and building a school system but am an experienced developer otherwise having firm grip over rails, .net, php & java. I have the following class where on teacher add/edit form, I am trying to filter values in class drop down based on school. The value of school_id is saved in s