from tagging import utils from tagging import models old_func utils pa

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
from tagging import utils
from tagging import models
old_func = utils.parse_tag_input
def new_func(input):
return old_func(input + ',')
utils.parse_tag_input = new_func
models.parse_tag_input = new_func
print utils.parse_tag_input('a b')