class FooModel(models.Model):
    file = models.FileField(upload_to=get_random_filename)
filename = models.CharField(max_length=128)

def save(self, force_insert=False, force_update=False):
    super(FooModel, self).save(force_insert, force_update)
Django: How to save original filename in FileField?