This repository has been archived on 2019-11-11. You can view files and clone it, but cannot push or open issues or pull requests.
tofu/issues/models.py

15 lines
392 B
Python

from django.db import models
from django.utils import timezone
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