'Clear the mutable metadata.
This excludes immutable fields: user agent, product, and category.'

def clear_mutable_metadata(self):

    self.metadata_set.exclude(name__in=['useragent', 'product', 'category']).delete()
    self._metadata = None
