mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-15 03:25:42 +00:00
Renamed Theme to ColorTheme, ColorTheme is now a per-user selection
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
# Generated by Django 3.0.7 on 2020-09-07 20:12
|
||||
# Generated by Django 3.0.7 on 2020-09-07 21:13
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
@ -11,10 +11,11 @@ class Migration(migrations.Migration):
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Theme',
|
||||
name='ColorTheme',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('theme', models.CharField(blank=True, choices=[('', 'Default'), ('-darker', 'Darker')], default='', max_length=20)),
|
||||
('name', models.CharField(blank=True, choices=[('', 'Default'), ('-darker', 'Darker')], default='', max_length=20)),
|
||||
('user', models.CharField(max_length=150)),
|
||||
],
|
||||
),
|
||||
]
|
@ -156,15 +156,16 @@ class Currency(models.Model):
|
||||
super().save(*args, **kwargs)
|
||||
|
||||
|
||||
class Theme(models.Model):
|
||||
class ColorTheme(models.Model):
|
||||
""" Color Theme setting """
|
||||
|
||||
class ThemeChoices(models.TextChoices):
|
||||
class ColorThemeChoices(models.TextChoices):
|
||||
DEFAULT = '', _('Default')
|
||||
DARKER = '-darker', _('Darker')
|
||||
|
||||
theme = models.CharField(max_length=20,
|
||||
choices=ThemeChoices.choices,
|
||||
default=ThemeChoices.DEFAULT,
|
||||
blank=True)
|
||||
name = models.CharField(max_length=20,
|
||||
choices=ColorThemeChoices.choices,
|
||||
default=ColorThemeChoices.DEFAULT,
|
||||
blank=True)
|
||||
|
||||
user = models.CharField(max_length=150)
|
Reference in New Issue
Block a user