sanj
14 years ago
4 changed files with 43 additions and 7 deletions
@ -0,0 +1,14 @@ |
|||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
|||
Version 2, December 2004 |
|||
|
|||
Copyright (C) 2010 Sanjay Bhangar <sanjay@camputer.org> |
|||
|
|||
Everyone is permitted to copy and distribute verbatim or modified |
|||
copies of this license document, and changing it is allowed as long |
|||
as the name is changed. |
|||
|
|||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
|||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
|||
|
|||
0. You just DO WHAT THE FUCK YOU WANT TO. |
|||
|
@ -1,8 +1,19 @@ |
|||
from django.db import models |
|||
|
|||
class File(models.Model): |
|||
|
|||
fullpath = models.TextField() |
|||
filename = models.CharField(max_length=512) |
|||
extension = models.CharField(max_length=10, blank=True) |
|||
file_size = models.BigIntegerField() |
|||
date_created = models.DateTimeField() |
|||
date_modified = models.DateTimeField() |
|||
date_accessed = models.DateTimeField() |
|||
sha1sum = models.CharField(max_length=100) |
|||
mime_type = models.CharField |
|||
|
|||
class Meta: |
|||
abstract = True |
|||
# Create your models here. |
|||
|
|||
class Video(File): |
|||
|
|||
|
Loading…
Reference in new issue