This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from django.contrib.auth.models import User
|
||||
from django.db import models
|
||||
|
||||
|
||||
@@ -13,6 +14,8 @@ class Item(models.Model):
|
||||
(OTHER, 'Other'),
|
||||
]
|
||||
|
||||
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='items', null=True)
|
||||
|
||||
category = models.CharField(max_length=10, choices=CATEGORY_CHOICES)
|
||||
name = models.CharField(max_length=200)
|
||||
progress_percent = models.FloatField(default=0.0)
|
||||
|
||||
Reference in New Issue
Block a user