def uuid(self, playlist): acc = [] for a in playlist.asset_set.order_by('asset_order'): acc.append((a.url, a.duration, a.active, a.kind)) return uuid5(NAMESPACE_URL, str(acc))