fnp
/
fnpdjango.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
0.5: Django 3.2 support, drop Django<1.11, Python<3.6, remove some compatibility...
[fnpdjango.git]
/
tests
/
models.py
1
from django.db import models
2
3
from fnpdjango.storage import BofhFileSystemStorage
4
5
bofh_storage = BofhFileSystemStorage()
6
7
8
class SomeModel(models.Model):
9
attachment = models.FileField(null=True, upload_to="test", storage=bofh_storage)