Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chris
repanier
Commits
e1d0ddd9
Commit
e1d0ddd9
authored
Mar 27, 2017
by
Patrick
Browse files
Force customer email invalidation when updating a customer record
parent
60117ea8
Changes
1
Hide whitespace changes
Inline
Side-by-side
repanier/models/customer.py
View file @
e1d0ddd9
...
...
@@ -319,6 +319,7 @@ def customer_pre_save(sender, **kwargs):
customer
.
price_list_multiplier
=
DECIMAL_ONE
customer
.
city
=
(
"%s"
%
customer
.
city
).
upper
()
customer
.
login_attempt_counter
=
DECIMAL_ZERO
customer
.
valid_email
=
None
@
receiver
(
post_delete
,
sender
=
Customer
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment