better findMedia
This commit is contained in:
parent
fc6cc93d26
commit
cf3161d4bd
4 changed files with 145 additions and 41 deletions
|
|
@ -25,6 +25,7 @@ from taskqueue.models import Task
|
|||
|
||||
from .chunk import save_chunk
|
||||
from . import extract
|
||||
from . import managers
|
||||
|
||||
if not PY2:
|
||||
unicode = str
|
||||
|
|
@ -100,6 +101,8 @@ class File(models.Model):
|
|||
data = models.FileField(null=True, blank=True,
|
||||
upload_to=data_path)
|
||||
|
||||
objects = managers.FileManager()
|
||||
|
||||
def __unicode__(self):
|
||||
return self.path
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue