Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed a redundant directory join during FileField form saving. Than…

…ks to David Danier's eagle eyes for picking up this one.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5826 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a49fd110552a2b7b2af0eb9f33ac9c2adf036e75 1 parent f1edb8c
Russell Keith-Magee authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/db/models/fields/__init__.py
2  django/db/models/fields/__init__.py
@@ -784,7 +784,7 @@ def get_filename(self, filename):
784 784
 
785 785
     def save_form_data(self, instance, data):
786 786
         if data:
787  
-            getattr(instance, "save_%s_file" % self.name)(os.path.join(self.upload_to, data.filename), data.content, save=False)
  787
+            getattr(instance, "save_%s_file" % self.name)(data.filename, data.content, save=False)
788 788
         
789 789
     def formfield(self, **kwargs):
790 790
         defaults = {'form_class': forms.FileField}

0 notes on commit a49fd11

Please sign in to comment.
Something went wrong with that request. Please try again.