create projects app; move Project model to projects app; recreate migrations because moving the model caused problems o.o
This commit is contained in:
parent
a14ab33927
commit
0013410ac1
16 changed files with 108 additions and 25 deletions
10
projects/models.py
Normal file
10
projects/models.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
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 self.name
|
||||
Reference in a new issue