set pdf status to uploaded

This commit is contained in:
j 2013-02-21 10:25:39 +00:00
parent b059f7eb3e
commit 94d4087aef

View file

@ -162,7 +162,7 @@ class Text(models.Model):
elif hasattr(self, _map.get(key, key)): elif hasattr(self, _map.get(key, key)):
response[key] = getattr(self, _map.get(key,key)) response[key] = getattr(self, _map.get(key,key))
if self.type == 'pdf': if self.type == 'pdf':
response['available'] = True if self.file and not self.uploading else False response['uploaded'] = True if self.file and not self.uploading else False
return response return response
def path(self, name=''): def path(self, name=''):