This commit is contained in:
Trey t
2023-07-14 14:55:15 -05:00
parent 4e1c4777ad
commit c5b577fc1b
14 changed files with 107 additions and 2 deletions

19
video/models.py Normal file
View 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)