@transaction.atomic
    def clone(self):
        # TODO: Maybe provide support for many-to-many relationships too, or
        # document that you should provide your own clone()
        # See https://code.djangoproject.com/ticket/4027
        new = copy.copy(self)
        unset_pks(new)
        new.save()

        for f in self._meta.many_to_many:
            # This will only handle simple many-to-manies, those that don't
            # have a custom through table.
            f.save_form_data(new, f.value_from_object(self))

        return new
**Note:** In order for clone to work, you need to have an
dataset/ETHPy150Open fusionbox/django-widgy/widgy/models/base.py/Content.clone