summaryrefslogtreecommitdiff
path: root/todolists/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-01-12 16:33:31 -0600
committerDan McGee <dan@archlinux.org>2013-01-12 16:33:31 -0600
commit6fe28b4206979a0db9c7d1f2f5f3a81c49d77951 (patch)
treeaa8377a35fe28b08ca8261767bb415a1645a6ef9 /todolists/models.py
parentbec73c7a37c07821f145dbcf11435d4f2b94a149 (diff)
Add last_modified field to todolist packages
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'todolists/models.py')
-rw-r--r--todolists/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/todolists/models.py b/todolists/models.py
index 040f8a29..3ea80f37 100644
--- a/todolists/models.py
+++ b/todolists/models.py
@@ -67,7 +67,8 @@ class TodolistPackage(models.Model):
pkgbase = models.CharField(max_length=255)
arch = models.ForeignKey(Arch)
repo = models.ForeignKey(Repo)
- created = models.DateTimeField()
+ created = models.DateTimeField(editable=False)
+ last_modified = models.DateTimeField(editable=False)
removed = models.DateTimeField(null=True, blank=True)
status = models.SmallIntegerField(default=INCOMPLETE,
choices=STATUS_CHOICES)