aboutsummaryrefslogtreecommitdiffstats
path: root/account/extra.py
diff options
context:
space:
mode:
authorWeitian LI <liweitianux@gmail.com>2014-04-29 00:49:26 +0800
committerWeitian LI <liweitianux@gmail.com>2014-04-29 00:49:26 +0800
commitb95b09491a12745de669e57a91167dd9ec5b3d0a (patch)
tree212eb442f31312917f05bd0e5b073a8314d5527e /account/extra.py
parentefe31dcaf500ac93338c1e493672dbedbcecde7a (diff)
downloaddjango-skaschool-b95b09491a12745de669e57a91167dd9ec5b3d0a.tar.bz2
* fixed FieldFile import problem of account/extra.py
* updated models.py and added 'help_text' to transcript field * using 'get_object_or_404' in views.py instead of simply get method
Diffstat (limited to 'account/extra.py')
-rw-r--r--account/extra.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/account/extra.py b/account/extra.py
index 8f034c9..e478c6d 100644
--- a/account/extra.py
+++ b/account/extra.py
@@ -4,8 +4,9 @@
Extra models for app account
"""
-from django.db import models
from django import forms
+from django.db import models
+from django.db.models.fields.files import FieldFile
from django.core.files.storage import FileSystemStorage
from django.conf import settings
from django.template.defaultfilters import filesizeformat