How I can change name of the document even when user prompted lower case string like: top kek
but I want: TOPKEK
instead. I have already tried before_rename hook but changing new variable does not work.
def before_rename(self, old, new, merge=False):
if isinstance(new, basestring):
new = new.upper().replace(" ", "")