Browse files

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: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent f1edb8c commit a49fd110552a2b7b2af0eb9f33ac9c2adf036e75 @freakboy3742 freakboy3742 committed Aug 7, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/models/fields/
@@ -784,7 +784,7 @@ def get_filename(self, filename):
def save_form_data(self, instance, data):
if data:
- getattr(instance, "save_%s_file" %, data.filename), data.content, save=False)
+ getattr(instance, "save_%s_file" %, data.content, save=False)
def formfield(self, **kwargs):
defaults = {'form_class': forms.FileField}

0 comments on commit a49fd11

Please sign in to comment.