changeset 7 | af9ab5ad2786 |
parent 6 | 057498d12450 |
child 8 | e2699e042129 |
6:057498d12450 | 7:af9ab5ad2786 |
---|---|
55 new_event.key = gen_key(10) |
55 new_event.key = gen_key(10) |
56 new_event.save() |
56 new_event.save() |
57 return new_event |
57 return new_event |
58 except IntegrityError: |
58 except IntegrityError: |
59 pass |
59 pass |
60 ''' |
60 |
61 def mail_user(email): |
61 |
62 """ get the user |
62 def activate_user(user): |
63 ''' |
63 """ mark the is_active flag as true. |
64 """ |
|
65 |
|
66 user.is_active = True |
|
67 user.save() |
|
68 return user |