From 4ebc7f7eae508fcf5a3031e1eeadba4183589136 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 13 May 2013 19:47:40 +0300 Subject: Set filename properly --- gsxws/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gsxws/core.py b/gsxws/core.py index b2d9b89..4e35c76 100644 --- a/gsxws/core.py +++ b/gsxws/core.py @@ -292,9 +292,11 @@ class GsxObject(object): super(GsxObject, self).__setattr__(name, value) return + # Kind of a lame way to identify files, but it's the best + # we have for Django's File class right now... if hasattr(value, "fileno"): if not hasattr(self, "fileName"): - super(GsxObject, self).__setattr__("fileName", value.name) + self.fileName = value.name value = base64.b64encode(value.read()) -- cgit v1.2.3