Skip to content
Snippets Groups Projects
Commit ae404ccf authored by Jonas Rabenstein's avatar Jonas Rabenstein
Browse files

admin: update user before notify hook of charge

Albeit the database will have the correct/updated amount of money,
the notification would still report the old value.
parent fe810038
No related branches found
No related tags found
No related merge requests found
...@@ -178,6 +178,7 @@ class ChargeAdmin(AppendOnlyModelAdmin): ...@@ -178,6 +178,7 @@ class ChargeAdmin(AppendOnlyModelAdmin):
user = models.UserData.objects.get(id=obj.user.id) user = models.UserData.objects.get(id=obj.user.id)
user.money += obj.amount user.money += obj.amount
user.save() user.save()
obj.user = user
notification = notify.Charge(obj) notification = notify.Charge(obj)
try: try:
notification.execute() notification.execute()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment