summaryrefslogtreecommitdiff
path: root/stapp/video/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'stapp/video/models.py')
-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