diff options
Diffstat (limited to 'src/matchbox/db/__init__.py')
-rw-r--r-- | src/matchbox/db/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/matchbox/db/__init__.py b/src/matchbox/db/__init__.py index 347236a..23821be 100644 --- a/src/matchbox/db/__init__.py +++ b/src/matchbox/db/__init__.py @@ -266,10 +266,11 @@ class DjangoDB(object): @dbquery def add_useflags_to_packageproperies(self, packageproperties_id, useflag_ids): pp = PackageProperties.objects.get(pk=packageproperties_id) - + pp.useflags.clear() for id in useflag_ids: useflag = Useflag.objects.get(pk=id) pp.useflags.add(useflag) + pp.save() @dbquery def add_contents_to_packageproperties(self, packageproperties_id, contents): |