From 3961e2bdfa2cb946f1bd367c9a7a392528bbaeef Mon Sep 17 00:00:00 2001 From: Weitian LI Date: Tue, 24 Jun 2014 17:11:44 +0800 Subject: 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 --- archive/models.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'archive') 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): -- cgit v1.2.2