def METHOD_NAME(self, uri_prefix, key):
    task = copy_model(self, uri_prefix=uri_prefix, key=key, start_attribute=self.start_attribute, end_attribute=self.end_attribute)
    # add m2m fields
    task.catalogs.set(self.catalogs.all())
    task.sites.set(self.sites.all())
    task.groups.set(self.groups.all())
    task.conditions.set(self.conditions.all())
    return task