2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-03 20:20:58 +00:00

Tweaks for settings admin views

This commit is contained in:
Oliver
2021-11-11 22:39:31 +11:00
parent d4db750d2f
commit 03aa9bc9b0
2 changed files with 22 additions and 0 deletions

View File

@ -63,6 +63,8 @@ class BaseInvenTreeSetting(models.Model):
Enforce validation and clean before saving
"""
self.key = str(self.key).upper()
self.clean()
self.validate_unique()