On Tue, 2012-07-03 at 01:08 -0700, Bharati Sharma wrote: > actually I am making project of faculty management system of my > college.I > have added some of the faculty member's resume in the database. i want > a > counter in my project that should increment its value whenever a new > faculty member's resume is added into the database. yes, it will > require > filter also as i want it should count no of assistant professors,no of > associate professors etc seperately....help me please..
you are storing redundant data in the database - not good. If you want the number of assistant professors, use filter() and count(). -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

