2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 21:15:41 +00:00

out-of-scope:update settings value lookup to include typ (#3636)

This commit is contained in:
Matthias Mair
2022-09-02 08:51:16 +02:00
committed by GitHub
parent 23edd79431
commit eaaf98f9d4
5 changed files with 17 additions and 5 deletions

View File

@ -173,6 +173,8 @@ class PluginConfig(models.Model):
class PluginSetting(common.models.BaseInvenTreeSetting):
"""This model represents settings for individual plugins."""
typ = 'plugin'
class Meta:
"""Meta for PluginSetting."""
unique_together = [
@ -222,6 +224,8 @@ class PluginSetting(common.models.BaseInvenTreeSetting):
class NotificationUserSetting(common.models.BaseInvenTreeSetting):
"""This model represents notification settings for a user."""
typ = 'notification'
class Meta:
"""Meta for NotificationUserSetting."""
unique_together = [