Removed unused code in admin_views tests.
Unused since its introduction in7b21bfc074
and1e4ad6f118
.
This commit is contained in:
parent
337cd652a5
commit
9d7e31cc74
|
@ -1,6 +1,4 @@
|
|||
import datetime
|
||||
import os
|
||||
import tempfile
|
||||
from io import StringIO
|
||||
from wsgiref.util import FileWrapper
|
||||
|
||||
|
@ -11,7 +9,6 @@ from django.contrib.admin.views.main import ChangeList
|
|||
from django.contrib.auth.admin import GroupAdmin, UserAdmin
|
||||
from django.contrib.auth.models import Group, User
|
||||
from django.core.exceptions import ValidationError
|
||||
from django.core.files.storage import FileSystemStorage
|
||||
from django.core.mail import EmailMessage
|
||||
from django.db import models
|
||||
from django.forms.models import BaseModelFormSet
|
||||
|
@ -363,10 +360,6 @@ class OldSubscriberAdmin(admin.ModelAdmin):
|
|||
actions = None
|
||||
|
||||
|
||||
temp_storage = FileSystemStorage(tempfile.mkdtemp())
|
||||
UPLOAD_TO = os.path.join(temp_storage.location, 'test_upload')
|
||||
|
||||
|
||||
class PictureInline(admin.TabularInline):
|
||||
model = Picture
|
||||
extra = 1
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import datetime
|
||||
import os
|
||||
import tempfile
|
||||
import uuid
|
||||
|
||||
|
@ -345,7 +344,6 @@ class EmptyModel(models.Model):
|
|||
|
||||
|
||||
temp_storage = FileSystemStorage(tempfile.mkdtemp())
|
||||
UPLOAD_TO = os.path.join(temp_storage.location, 'test_upload')
|
||||
|
||||
|
||||
class Gallery(models.Model):
|
||||
|
|
Loading…
Reference in New Issue