On Tue, Aug 25, 2015, at 14:31, Hugo Kitano wrote:
I guess my question is more "dumb" than that. I need a concatenated string "ab" where a is given and b is the name of a file uploaded to a field in a model.
Thanks!
Something like this?
class Blah(models.Model):
def upload_to(self, filename="untitled", instance=None):
return "somestring" + filename
data = FileField(upload_to=upload_to)