mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-16 16:33:12 +00:00
[Printer][Preference] Forgot migrations in commit 1e8d84b4c89d691a17da505358fb2f60c7d57394
This commit is contained in:
parent
4924f357e1
commit
cf159f79ae
2 changed files with 55 additions and 0 deletions
35
preferences/migrations/0052_optionalprinter.py
Normal file
35
preferences/migrations/0052_optionalprinter.py
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.10.7 on 2018-10-20 10:22
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
import re2o.mixins
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('preferences', '0051_auto_20180919_2225'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.CreateModel(
|
||||||
|
name='OptionalPrinter',
|
||||||
|
fields=[
|
||||||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
|
('A3_enabled', models.BooleanField(default=False, help_text='Can print in A3 format ?')),
|
||||||
|
('booklet_enabled', models.BooleanField(default=False, help_text='Can print in booklet format ?')),
|
||||||
|
('color_enabled', models.BooleanField(default=False, help_text='Can print in color ?')),
|
||||||
|
('stapling_enabled', models.BooleanField(default=False, help_text='Can use staples ?')),
|
||||||
|
('perforation_enabled', models.BooleanField(default=False, help_text='Can perforate ?')),
|
||||||
|
('max_size', models.IntegerField(default=25, help_text='Maximum size in MB of files to be printed')),
|
||||||
|
('depreciation_coef', models.DecimalField(decimal_places=2, default=0.0, help_text='Set depreciation coefficient', max_digits=5)),
|
||||||
|
('A3_price', models.DecimalField(decimal_places=2, default=0.0, max_digits=5)),
|
||||||
|
('A4_price', models.DecimalField(decimal_places=2, default=0.0, max_digits=5)),
|
||||||
|
('Color_price', models.DecimalField(decimal_places=2, default=0.0, max_digits=5)),
|
||||||
|
('Greyscale_price', models.DecimalField(decimal_places=2, default=0.0, max_digits=5)),
|
||||||
|
('Staples_price', models.DecimalField(decimal_places=2, default=0.0, max_digits=5)),
|
||||||
|
],
|
||||||
|
bases=(re2o.mixins.AclMixin, models.Model),
|
||||||
|
),
|
||||||
|
]
|
|
@ -0,0 +1,20 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.10.7 on 2018-10-20 11:58
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('preferences', '0052_optionalprinter'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='optionalprinter',
|
||||||
|
name='Printer_enabled',
|
||||||
|
field=models.BooleanField(default=False, help_text='Is printer Available ?'),
|
||||||
|
),
|
||||||
|
]
|
Loading…
Reference in a new issue