mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Script to check for unstaged migrations
This commit is contained in:
parent
180df8f110
commit
56dda5eff4
@ -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
|
||||
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user