thanks Jon... 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..
On Tue, Jul 3, 2012 at 12:48 AM, Jon Black <jon_bl...@mm.st> wrote: > That's quite a vague requirement. You could override form_valid() in your > view and increment a counter in your model manually before saving. It might > pay to ask yourself why you need a counter. Does it make more sense to > record the actions in a separate table and count the records? Will the > count require filtering later (e.g. number of counts each month, week, day). > > -- > Jon Black > www.jonblack.org > > > On Mon, Jul 2, 2012, at 23:25, Bharati Sharma wrote: > > I want to add counter in my project so that the value in the table > increases as the data is put in the database. Can anyone help me plz. > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.