fix: create custom fields for configurations in validate method
This commit is contained in:
parent
ae1c041537
commit
a18c037b91
1 changed files with 3 additions and 1 deletions
|
|
@ -17,9 +17,11 @@ class EventProducer(Document):
|
|||
def before_insert(self):
|
||||
self.create_event_consumer()
|
||||
|
||||
def validate():
|
||||
self.create_custom_fields()
|
||||
|
||||
def on_update(self):
|
||||
self.update_event_consumer()
|
||||
self.create_custom_fields()
|
||||
|
||||
def create_event_consumer(self):
|
||||
'''check connection status for the Event Producer site'''
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue