Removed unused code in admin_views tests.

Unused since its introduction in 7b21bfc074
and 1e4ad6f118.
This commit is contained in:
Jacob Walls 2021-02-26 14:49:21 -05:00 committed by GitHub
parent 337cd652a5
commit 9d7e31cc74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 9 deletions

View File

@ -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

View File

@ -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):