diff --git a/djautotask/sync.py b/djautotask/sync.py index 835723b..a728902 100644 --- a/djautotask/sync.py +++ b/djautotask/sync.py @@ -1162,27 +1162,6 @@ def _assign_field_data(self, instance, object_data): return instance - def set_description(self, note_data): - """ - Set the description for a note. - """ - if self.client.impersonation_resource or \ - note_data.get('created_by_contact_id'): - description = note_data['description'] - else: - resource = note_data.pop('resource') - description = "{}\n\nNote was added by {} {}.".format( - note_data['description'], - resource.first_name, - resource.last_name, - ) - - note_data.update({ - 'description': description - }) - - return note_data - class TicketNoteSynchronizer(ChildCreateRecordMixin, NoteSynchronizer, @@ -1226,7 +1205,6 @@ def create(self, parent, **kwargs): """ Make a request to Autotask to create a Note. """ - kwargs = self.set_description(kwargs) return super().create(parent, **kwargs) @@ -1258,14 +1236,6 @@ def active_ids(self): return active_ids - def create(self, **kwargs): - """ - Make a request to Autotask to create a Note. - """ - kwargs = self.set_description(kwargs) - - return super().create(**kwargs) - class TimeEntrySynchronizer(CreateRecordMixin, MultiConditionBatchQueryMixin,