summaryrefslogtreecommitdiff
path: root/tests/regressiontests/file_uploads/models.py
blob: 3701750afe131ddb856d53296d39029dd1a11e8f (plain)
1
2
3
4
5
6
7
8
9
import tempfile
import os
from django.db import models

UPLOAD_ROOT = tempfile.mkdtemp()
UPLOAD_TO = os.path.join(UPLOAD_ROOT, 'test_upload')

class FileModel(models.Model):
    testfile = models.FileField(upload_to=UPLOAD_TO)