I'd like to use an upload handler function but confused as to how an
uploaded file gets saved to a model's FileField. Eventually I will use a
formset to allow for multiple files to be uploaded.
#models.py
class MyModel(models.Model):
file = models.FileField(upload_to='attachments', blank=Tru
#x27;, wikify)
> def wikify(value):
> return wikilink.sub(r"\1", value)
Did you try calling register.filter('wikify', wikify) after the wikify
method instead of before?
-Rajesh
Brian Hunter
brianhunterstudio.com
--~--~-~--~~~---~--~~
Yo
2 matches
Mail list logo