Im using this model:
class User(Entity):
using_options(tablename='users', inheritance='multi')
name = Field(Unicode(255), required=True)
username = Field(Unicode(255), required=True)
password = Field(Unicode(255), required=True)
acts_as_encrypted(for_fields=['password'], with_secret='asdfasdf')
u = Session.User.query().get_by(username=username)
u.name = 'changing only this'
Session.flush()
When updating model, i see password is encrypted and updated as well
even i dont change it and in my case encrypted pass gets encrypted,
and next time over and over again, so password changes and string gets
longer and longer. What might cause this and how it is prevented?
-Marko
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SQLElixir" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---