mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
File storage refactoring, adding far more flexibility to Django's file handling. The new files.txt document has details of the new features.
This is a backwards-incompatible change; consult BackwardsIncompatibleChanges for details. Fixes #3567, #3621, #4345, #5361, #5655, #7415. Many thanks to Marty Alchin who did the vast majority of this work. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8244 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
c49eac7d4f
commit
7899568e01
33 changed files with 1585 additions and 457 deletions
|
@ -36,4 +36,4 @@ class Bug639Test(unittest.TestCase):
|
|||
Make sure to delete the "uploaded" file to avoid clogging /tmp.
|
||||
"""
|
||||
p = Photo.objects.get()
|
||||
os.unlink(p.get_image_filename())
|
||||
p.image.delete(save=False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue