mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.
These functions do nothing on Python 3.
This commit is contained in:
@@ -15,7 +15,6 @@ from django.core import validators
|
||||
from django.core.exceptions import ValidationError
|
||||
from django.core.files.storage import FileSystemStorage
|
||||
from django.db import models
|
||||
from django.utils._os import upath
|
||||
|
||||
temp_storage_dir = tempfile.mkdtemp()
|
||||
temp_storage = FileSystemStorage(temp_storage_dir)
|
||||
@@ -160,7 +159,7 @@ class CustomFF(models.Model):
|
||||
|
||||
|
||||
class FilePathModel(models.Model):
|
||||
path = models.FilePathField(path=os.path.dirname(upath(__file__)), match=r".*\.py$", blank=True)
|
||||
path = models.FilePathField(path=os.path.dirname(__file__), match=r".*\.py$", blank=True)
|
||||
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user