This repository has been archived on 2019-11-11. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
tofu/issues/models.py

15 lines
392 B
Python
Raw Normal View History

2019-03-20 22:14:36 +01:00
from django.db import models
from django.utils import timezone
2019-03-20 22:14:36 +01:00
from projects.models import Project
class Issue(models.Model):
project = models.ForeignKey(Project, on_delete=models.CASCADE)
title = models.CharField(max_length=200)
text = models.TextField(blank=True)
create_date = models.DateTimeField(default=timezone.now)
def __str__(self):
return self.title