Package_group contains relations of packages from all the repos package_group is in
sync each repo
Both of the repos have identical PackageGroup with id 'mammals'. Observe that on same instance of Package group all of the relations are kept. From repo A and from repo B
In : PackageGroup.objects.filter(id='mammals') Out: <QuerySet [<PackageGroup: mammals>]> In : x=PackageGroup.objects.filter(id='mammals') In : len(x.packages) Out: 22 In : x.related_packages.count() Out: 47
From same issue suffers PackageCategories and PackageEnvironments
Added by ppicka about 3 years ago
PackageGroup related_packages removal
PackageGroup doesn't specify package version so any package can be used with list of packages already present in PackageGroup. Also removed relations to PackageGroup and each other for PackageCategory and PackageEnvironment.