WIP
This commit is contained in:
19
video/models.py
Normal file
19
video/models.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
VIDEO_GENDER = (
|
||||
(1, "male"),
|
||||
(2, "female"),
|
||||
(3, "both"),
|
||||
)
|
||||
|
||||
class Video(models.Model):
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
updated_at = models.DateTimeField(auto_now=True)
|
||||
video_file = models.FileField(upload_to='videos/', null=True, verbose_name="")
|
||||
gender = models.PositiveSmallIntegerField(
|
||||
choices=VIDEO_GENDER
|
||||
)
|
||||
|
||||
def __str__(self):
|
||||
return str(self.video_file)
|
||||
Reference in New Issue
Block a user