I think you need to ask this question in django-users group. This group is for 
core features and bugs discussions.


-- 
Alexandr Shurigin

From: Baidyanath Anurag anurag.fa...@gmail.com
Reply: django-developers@googlegroups.com django-developers@googlegroups.com
Date: 12 июня 2014 г. at 1:09:54
To: django-developers@googlegroups.com django-developers@googlegroups.com
Subject:  implementing a ticket submission system  

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")
    ticket_id=models.IntegerField(help_text="enter tid",unique=True)
    created_date_time=models.DateTimeField(auto_now_add=True)
    overdue_date_time=models.DateTimeField(auto_now_add=True)
    closed_date_time=models.DateTimeField(auto_now_add=True)
    status=models.IntegerField(help_text="enter status",default=0)
    reopened_date_time=models.DateTimeField(auto_now_add=True)
    topic_priority=models.IntegerField(help_text="enter priority",default=1)
    duration_for_reply=models.IntegerField(help_text="enter duration for 
reply",default=24)

i need to take the data submitted by the user(message and subject); and 
generate the ticket_id dynamically for each ticket. Then the data has to be 
saved into the database. please suggest an approach for this.
--
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/d20318d4-dce0-4d32-9db7-1dc5d788c48c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/etPan.53989c7f.7c3dbd3d.fbcf%40MacBook-Pro-dude.local.
For more options, visit https://groups.google.com/d/optout.

Reply via email to