fix: save method of Appointment Booking Setting

This commit is contained in:
0Pranav 2019-11-20 10:30:41 +05:30
parent c8e66a0f71
commit dbde140e46

View File

@ -18,8 +18,9 @@ class AppointmentBookingSettings(Document):
def save(self):
self.infer_number_of_agents()
super().save()
def infer_number_of_agents():
def infer_number_of_agents(self):
self.number_of_agents = len(self.agent_list)
def validate_availability_of_slots(self):