The like_zeus=Func(F('name'),function='levenshtein',template="%(function)s(%(expressions)s,'Zeus')") took two arguments which allowed the database representation, viz, function and template. If you need to reuse the function, you can define a class like this.