summaryrefslogtreecommitdiff
path: root/stapp/video
diff options
context:
space:
mode:
authorParth Buch2012-06-18 17:30:09 +0530
committerParth Buch2012-06-18 17:30:09 +0530
commit56e15c264c48e299a036054d205b812e68d375a4 (patch)
treeafc5a4d411a62b59f5b7f5e54fae19dea6eeedce /stapp/video
parentc6104f941b5027a6c170e66abd28e45f2c42f92b (diff)
downloadstproject-56e15c264c48e299a036054d205b812e68d375a4.tar.gz
stproject-56e15c264c48e299a036054d205b812e68d375a4.tar.bz2
stproject-56e15c264c48e299a036054d205b812e68d375a4.zip
added a created field to retrive latest video
Diffstat (limited to 'stapp/video')
-rw-r--r--stapp/video/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/stapp/video/models.py b/stapp/video/models.py
index c7b0786..aa675b1 100644
--- a/stapp/video/models.py
+++ b/stapp/video/models.py
@@ -1,10 +1,12 @@
from django.db import models
from django.contrib.auth.models import User
+
class Video(models.Model):
"""Videos to be uploaded.."""
name = models.CharField(max_length=128)
filename = models.FileField(upload_to="videos")
description = models.TextField()
+ created = models.DateTimeField(auto_now_add=True)
def __unicode__(self):
return self.name