Modifying the request.POST data that is received from a form; form is not getting validated then

2014-06-10 Thread Anurag Baidyanath
i am having difficulty in saving the form data to the database. After the user submits the form; fields such as ticket_id , created_date, etc have to be added to the POST request which is generated as a result of the form submission. I have copied the POST data to another dictionary and appende

Re: Modifying the request.POST data that is received from a form; form is not getting validated then

2014-06-10 Thread Anurag Baidyanath
ls.IntegerField() reopened_date_time=models.DateTimeField(auto_now_add=True) topic_priority=models.IntegerField() duration_for_reply=models.IntegerField() def __unicode__(self): return unicode(self.user_id) On Tuesday, 10 June 2014 18:23:42 UTC+5:30, Daniel Roseman

implementing a ticket submission system

2014-06-11 Thread Anurag Baidyanath
i am implementing a ticket submission system whose model.py file looks loke this: class Ticket(models.Model): user_id=models.ForeignKey(User) category_id=models.ForeignKey(Category) subject=models.CharField(max_length=100) message=models.TextField(help_text="enter message") tic

Re: implementing a ticket submission system

2014-06-13 Thread Anurag Baidyanath
yCharm (Best Python/Django IDE) > http://www.jetbrains.com/pycharm/ > "Develop with pleasure!" > > > >-Original Message- > >From: django...@googlegroups.com > >[mailto:django...@googlegroups.com ] On Behalf Of Anurag > Baidyanath > >Sent: We

Setting initial value of a autoincrement field in the database

2014-06-19 Thread Anurag Baidyanath
I have a field in my models.py file as follows ticket_id = models.AutoField(primary_key=True) The value for the ticket_id column starts at 1. say i wanted it to start from some value (say 989) . how do i accomplish this using django? -- You received this message because you are subscribed to t

how to add additional data to that submitted by the user in a django form

2014-06-23 Thread Anurag Baidyanath
I am trying to create a form in which the user enter details like his email id and query. After the form is submitted i have to save the data that I get from the form along with some additional info such as userid , submitted date and time, etc into the database. What approach should be adopt