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
@@ -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)