Uploading files
This commit is contained in:
7
rowsandall_app/models.py
Normal file
7
rowsandall_app/models.py
Normal file
@@ -0,0 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from django.db import models
|
||||
from rows import validate_file_extension
|
||||
|
||||
class Document(models.Model):
|
||||
docfile = models.FileField(upload_to='documents/%Y/%m/%d',
|
||||
validators=[validate_file_extension])
|
||||
Reference in New Issue
Block a user