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/projects/models.py

10 lines
299 B
Python

from django.db import models
class Project(models.Model):
project_key = models.CharField(max_length=16, unique=True)
name = models.CharField(max_length=200)
description = models.TextField(blank=True)
def __str__(self):
return '{} - {}'.format(self.project_key, self.name)