def __init__(self, Key=None, **kwargs): if Key is None: Key = MultiFernet.generate_key() print( 'No key supplied pesudo-random key generated : {}\nPlease update field with this key value before next run' .format(Key)) EncryptedField._Tokens.append(Fernet(Key)) Field.__init__(self, **kwargs)