mirror of
https://git.yoctoproject.org/poky
synced 2026-02-10 10:43:02 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
998f9af193
commit
6fbceb0f12
@@ -1584,3 +1584,4 @@ def invalidate_cache(**kwargs):
|
||||
|
||||
django.db.models.signals.post_save.connect(invalidate_cache)
|
||||
django.db.models.signals.post_delete.connect(invalidate_cache)
|
||||
django.db.models.signals.m2m_changed.connect(invalidate_cache)
|
||||
|
||||
Reference in New Issue
Block a user