Revision e015e9e6 astakos/im/forms.py
b/astakos/im/forms.py | ||
---|---|---|
45 | 45 |
|
46 | 46 |
import logging |
47 | 47 |
|
48 |
logger = logging.getLogger(__name__) |
|
49 |
|
|
48 | 50 |
class LocalUserCreationForm(UserCreationForm): |
49 | 51 |
""" |
50 | 52 |
Extends the built in UserCreationForm in several ways: |
... | ... | |
85 | 87 |
user.renew_token() |
86 | 88 |
if commit: |
87 | 89 |
user.save() |
88 |
logging.info('Created user %s', user)
|
|
90 |
logger.info('Created user %s', user)
|
|
89 | 91 |
return user |
90 | 92 |
|
91 | 93 |
class InvitedLocalUserCreationForm(LocalUserCreationForm): |
... | ... | |
175 | 177 |
user.renew_token() |
176 | 178 |
if commit: |
177 | 179 |
user.save() |
178 |
logging.info('Created user %s', user)
|
|
180 |
logger.info('Created user %s', user)
|
|
179 | 181 |
return user |
180 | 182 |
|
181 | 183 |
class InvitedThirdPartyUserCreationForm(ThirdPartyUserCreationForm): |
Also available in: Unified diff