This website works better with JavaScript.
Home
Explore
Help
Sign In
raynald
/
kalachakra
Watch
1
Star
0
Fork
0
Code
Issues
72
Pull Requests
0
Projects
2
Releases
0
Wiki
Activity
Browse Source
mail don et adhesion
dev-rcn
root
3 years ago
parent
e6ba2a1878
commit
e089248883
2 changed files
with
9 additions
and
6 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-3
models/donation.py
+5
-3
models/membership.py
+ 4
- 3
models/donation.py
View File
@ -68,9 +68,10 @@ class DonationDonation(models.Model):
d
.
state_done
=
False
if
d
.
transaction_id
:
if
d
.
transaction_id
.
state
==
'
done
'
:
d
.
state
=
'
done
'
d
.
state_done
=
True
d
.
email_confirmation
(
)
if
d
.
state
!=
'
done
'
:
d
.
state
=
'
done
'
d
.
state_done
=
True
d
.
email_confirmation
(
)
def
email_confirmation
(
self
)
:
+ 5
- 3
models/membership.py
View File
@ -97,10 +97,12 @@ class kalachakra_membership(models.Model):
if
m
.
transaction_id
:
if
m
.
transaction_id
.
state
==
'
done
'
:
m
.
payment_state
=
'
paid
'
m
.
state
=
'
done
'
if
m
.
state
!=
'
done
'
:
m
.
payment_state
=
'
paid
'
m
.
state
=
'
done
'
m
.
email_confirmation
(
)
m
.
update_membership
(
)
m
.
email_confirmation
(
)
def
_inverse_membership_state
(
self
)
:
for
m
in
self
:
Write
Preview
Loading…
Cancel
Save