pytask/taskapp/models.py
changeset 89 539e7a0b5d86
parent 88 8165274cafa1
child 90 437af7ad6cb9
equal deleted inserted replaced
88:8165274cafa1 89:539e7a0b5d86
     1 from django.db import models
     1 from django.db import models
       
     2 from django.contrib.auth.models import User
     2 
     3 
     3 import tagging
     4 import tagging
     4 from tagging.fields import TagField
     5 from tagging.fields import TagField
     5 
     6 
     6 STATUS_CHOICES = (
     7 STATUS_CHOICES = (
     9         ("LO", "Locked"),
    10         ("LO", "Locked"),
    10         ("WR", "Working"),
    11         ("WR", "Working"),
    11         ("CD", "Closed"),
    12         ("CD", "Closed"),
    12         ("DL", "Deleted"),
    13         ("DL", "Deleted"),
    13         ("CM", "Completed"))
    14         ("CM", "Completed"))
       
    15 
       
    16 UPLOADS_DIR = "./pytask/static/uploads"
    14 
    17 
    15 class Task(models.Model):
    18 class Task(models.Model):
    16     
    19     
    17     uniq_key = models.CharField(max_length = 10, unique = True)
    20     uniq_key = models.CharField(max_length = 10, unique = True)
    18     title = models.CharField(max_length = 100, verbose_name = u"Title", 
    21     title = models.CharField(max_length = 100, verbose_name = u"Title",