We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98baed4 commit e10f040Copy full SHA for e10f040
1 file changed
raven/raven/doctype/raven_push_token/raven_push_token.py
@@ -23,6 +23,9 @@ class RavenPushToken(Document):
23
user: DF.Link
24
# end: auto-generated types
25
26
+ def before_validate(self):
27
+ self.user = frappe.session.user
28
+
29
def after_insert(self):
30
"""
31
If the push service is Frappe Cloud and is enabled, then send the token to the Frappe Cloud API
0 commit comments