def delete(self):
        """
        If a dynamic version, delete it the standard way and remove it from the
        inventory, else delete all dynamic versions.
        """
        if self.dynamic_version_of is None:
            self._delete_dynamic_versions()
        else:
            super(DynamicFieldMixin, self).delete()
            self._inventory.srem(self.dynamic_part)
If a dynamic version, delete it the standard way and remove it from the
        inventory, else delete all dynamic versions.