summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-01-29 14:40:41 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-10 13:29:21 +0000
commit6fbceb0f121d760f84cabeb9e610b3480acd75d2 (patch)
treee3f2d9d0621e5dff74d188e1adfbd6d8fa4102aa /bitbake
parent998f9af193aec78abaddfbedd7dac161ed9d538d (diff)
downloadpoky-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.py1
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
1585django.db.models.signals.post_save.connect(invalidate_cache) 1585django.db.models.signals.post_save.connect(invalidate_cache)
1586django.db.models.signals.post_delete.connect(invalidate_cache) 1586django.db.models.signals.post_delete.connect(invalidate_cache)
1587django.db.models.signals.m2m_changed.connect(invalidate_cache)