diff options
Diffstat (limited to 'examples/cloudfiles_project/photos/models.py')
| -rw-r--r-- | examples/cloudfiles_project/photos/models.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/cloudfiles_project/photos/models.py b/examples/cloudfiles_project/photos/models.py new file mode 100644 index 0000000..0770a3d --- /dev/null +++ b/examples/cloudfiles_project/photos/models.py @@ -0,0 +1,9 @@ +from django.db import models +from backends.mosso import cloudfiles_upload_to + +class Photo(models.Model): + title = models.CharField(max_length=50) + image = models.ImageField(upload_to=cloudfiles_upload_to) + + def __unicode__(self): + return self.title
\ No newline at end of file |
