Reset _table of UserAuthenticateAttempt

It is needed otherwise the ModelSQL keeps the _table of LoginAttempt.
This commit is contained in:
Cédric Krier committed 2016-08-27 01:07:37 +02:00
1 parent 5b5e52affc
commit fd55c720d7
1 file changed
+1
+1
View File
@@ -322,6 +322,7 @@ class User(ModelSQL, ModelView):
class UserAuthenticateAttempt(LoginAttempt):
'Web User Authenticate Attempt'
__name__ = 'web.user.authenticate.attempt'
_table = None # Needed to reset LoginAttempt._table
class UserSession(ModelSQL):