aboutsummaryrefslogtreecommitdiffstats
path: root/archive
diff options
context:
space:
mode:
authorWeitian LI <liweitianux@gmail.com>2014-06-24 17:11:44 +0800
committerWeitian LI <liweitianux@gmail.com>2014-06-24 17:11:44 +0800
commit3961e2bdfa2cb946f1bd367c9a7a392528bbaeef (patch)
tree326b178af4a91ae875a490d10a2904412a8f29a3 /archive
parented3d74e61300f91818eeff9dad7e9d35c556f75a (diff)
downloaddjango-skaschool-3961e2bdfa2cb946f1bd367c9a7a392528bbaeef.tar.bz2
Splited storage function from account.extra
* Splited storage function from account.extra -> tools/storage.py - OverwriteStorage - file_cleanup * Updated account.models, archive.models * Added OverwriteStorage and file_cleanup function to notice.models
Diffstat (limited to 'archive')
-rw-r--r--archive/models.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/archive/models.py b/archive/models.py
index 47903e4..467caa4 100644
--- a/archive/models.py
+++ b/archive/models.py
@@ -1,14 +1,11 @@
# -*- coding: utf-8 -*-
from django.db import models
+from django.db.models.signals import pre_delete
from django.contrib.auth.models import User
-from django.contrib.contenttypes.models import ContentType
-from django.contrib.contenttypes import generic
from django.utils.translation import ugettext_lazy as _
-from django.db.models.signals import pre_delete
-
-from account.extra import OverwriteStorage, file_cleanup
+from tools.storage import OverwriteStorage, file_cleanup
class Archive(models.Model):