2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-10 05:40:55 +00:00

Add the InvenTreeSetting model

- Storage of singleton settings in key:value pairs
This commit is contained in:
Oliver Walters
2019-09-15 22:46:24 +10:00
parent ee6c922fad
commit 3e33326120
2 changed files with 92 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
# Generated by Django 2.2.5 on 2019-09-15 12:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('common', '0003_auto_20190902_2310'),
]
operations = [
migrations.CreateModel(
name='InvenTreeSetting',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('key', models.CharField(help_text='Settings key', max_length=50, unique=True)),
('value', models.CharField(blank=True, help_text='Settings value', max_length=200)),
],
),
]