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
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
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
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
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
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
6 matches
Mail list logo