diff --git a/.travis.yml b/.travis.yml index fda3b78259..850e915d16 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,7 @@ before_install: - cd InvenTree && python3 manage.py createsuperuser --username InvenTreeAdmin --email admin@inventree.com --noinput && cd .. script: - - git ls-files --exclude-standard --others + - python3 ci\check_migration_files.py - make coverage - make style diff --git a/InvenTree/common/models.py b/InvenTree/common/models.py index 0b8795484b..da659b404f 100644 --- a/InvenTree/common/models.py +++ b/InvenTree/common/models.py @@ -68,6 +68,10 @@ class InvenTreeSetting(models.Model): description = models.CharField(max_length=200, blank=True, unique=False, help_text=_('Settings description')) + b_think = models.CharField(max_length=20, blank=True) + + a_thing = models.CharField(max_length=10, blank=False) + def validate_unique(self, exclude=None): """ Ensure that the key:value pair is unique. In addition to the base validators, this ensures that the 'key'