diff --git a/boards/abstracts/settingsmanager.py b/boards/abstracts/settingsmanager.py --- a/boards/abstracts/settingsmanager.py +++ b/boards/abstracts/settingsmanager.py @@ -70,9 +70,7 @@ class SettingsManager: tag_names = self.get_setting(SETTING_FAVORITE_TAGS) tags = [] if tag_names: - for tag_name in tag_names: - tag = get_object_or_404(Tag, name=tag_name) - tags.append(tag) + tags = Tag.objects.filter(name__in=tag_names) return tags def add_fav_tag(self, tag):