fnp
/
fnpdjango.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Python 3, Django 1.7+ compatilibity, some tests.
[fnpdjango.git]
/
tests
/
models.py
diff --git a/tests/models.py
b/tests/models.py
new file mode 100644
(file)
index 0000000..
11102ef
--- /dev/null
+++ b/
tests/models.py
@@ -0,0
+1,9
@@
+from django.db import models
+
+from fnpdjango.storage import BofhFileSystemStorage
+
+bofh_storage = BofhFileSystemStorage()
+
+
+class SomeModel(models.Model):
+ attachment = models.FileField(null=True, upload_to="test", storage=bofh_storage)