fix: create custom fields for configurations in validate method

This commit is contained in:
Rucha Mahabal 2019-10-14 03:27:33 +05:30
parent ae1c041537
commit a18c037b91

View file

@ -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'''