diff options
author | Michael Wood <michael.g.wood@intel.com> | 2016-01-29 14:40:41 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-10 13:29:21 +0000 |
commit | 6fbceb0f121d760f84cabeb9e610b3480acd75d2 (patch) | |
tree | e3f2d9d0621e5dff74d188e1adfbd6d8fa4102aa /bitbake | |
parent | 998f9af193aec78abaddfbedd7dac161ed9d538d (diff) | |
download | poky-6fbceb0f121d760f84cabeb9e610b3480acd75d2.tar.gz |
bitbake: toaster: models Invalidate ToasterTables cache when a m2m field changes
Whem a m2m field changes we need to clear the ToasterTables cache as
this can affect the state of items in ToasterTables.
For example the CustomImagePackages being added or removed from a custom
image recipe.
(Bitbake rev: c9d7b68ee0186a71e8e75a5d87122a0328001515)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/toaster/orm/models.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index cb3c385c60..e9285d6438 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py | |||
@@ -1584,3 +1584,4 @@ def invalidate_cache(**kwargs): | |||
1584 | 1584 | ||
1585 | django.db.models.signals.post_save.connect(invalidate_cache) | 1585 | django.db.models.signals.post_save.connect(invalidate_cache) |
1586 | django.db.models.signals.post_delete.connect(invalidate_cache) | 1586 | django.db.models.signals.post_delete.connect(invalidate_cache) |
1587 | django.db.models.signals.m2m_changed.connect(invalidate_cache) | ||