mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 13:05:42 +00:00
override functions
This commit is contained in:
@ -792,6 +792,17 @@ class InvenTreeUserSetting(BaseInvenTreeSetting):
|
|||||||
help_text=_('User'),
|
help_text=_('User'),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def get_setting_object(cls, key, user):
|
||||||
|
return super().get_setting_object(key, user=user)
|
||||||
|
|
||||||
|
def validate_unique(self, exclude=None):
|
||||||
|
return super().validate_unique(exclude=exclude, user=self.user)
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def get_filters(cls, key, **kwargs):
|
||||||
|
return {'key__iexact': key, 'user__id__iexact': kwargs['user'].id}
|
||||||
|
|
||||||
|
|
||||||
class PriceBreak(models.Model):
|
class PriceBreak(models.Model):
|
||||||
"""
|
"""
|
||||||
|
Reference in New Issue
Block a user