Compare commits

..

No commits in common. "eebeb88dcf1f7acb012952210e2acaf67f2e3fba" and "28e232b5dc956a9c25ca0007ab5b0db83f006ded" have entirely different histories.

View File

@ -651,18 +651,6 @@ class AppointmentRequest(models.Model):
if commit: if commit:
self.save() self.save()
def reschedule_appointment(self, new_datetime, new_duration, commit=True):
self.status = 'scheduled'
self.scheduled_datetime = new_datetime
self.scheduled_duration = new_duration
self.rejection_reason = ''
if self.has_jitsi_meeting:
self.create_jitsi_meeting(with_moderation=True)
if commit:
self.save()
def reject_appointment(self, reason='', commit=True): def reject_appointment(self, reason='', commit=True):
self.status = 'rejected' self.status = 'rejected'
self.rejection_reason = reason self.rejection_reason = reason