mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
Update login system to support the multiple threads of UWSGI
This commit is contained in:
54
counter/migrations/0002_auto_20160826_1342.py
Normal file
54
counter/migrations/0002_auto_20160826_1342.py
Normal file
@ -0,0 +1,54 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
from django.conf import settings
|
||||
import accounting.models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
('counter', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='CashRegisterSummary',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
|
||||
('date', models.DateTimeField(verbose_name='date')),
|
||||
('comment', models.TextField(null=True, verbose_name='comment', blank=True)),
|
||||
('emptied', models.BooleanField(default=False, verbose_name='emptied')),
|
||||
('counter', models.ForeignKey(to='counter.Counter', related_name='cash_summaries', verbose_name='counter')),
|
||||
('user', models.ForeignKey(to=settings.AUTH_USER_MODEL, related_name='cash_summaries', verbose_name='user')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'cash register summary',
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='CashRegisterSummaryItem',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
|
||||
('value', accounting.models.CurrencyField(max_digits=12, verbose_name='value', decimal_places=2)),
|
||||
('quantity', models.IntegerField(default=0, verbose_name='quantity')),
|
||||
('check', models.BooleanField(default=False, verbose_name='check')),
|
||||
('cash_summary', models.ForeignKey(to='counter.CashRegisterSummary', related_name='items', verbose_name='cash summary')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'cash register summary item',
|
||||
},
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='permanency',
|
||||
name='counter',
|
||||
field=models.ForeignKey(to='counter.Counter', related_name='permanencies', verbose_name='counter'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='permanency',
|
||||
name='user',
|
||||
field=models.ForeignKey(to=settings.AUTH_USER_MODEL, related_name='permanencies', verbose_name='user'),
|
||||
),
|
||||
]
|
22
counter/migrations/0003_permanency_activity.py
Normal file
22
counter/migrations/0003_permanency_activity.py
Normal file
@ -0,0 +1,22 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
import datetime
|
||||
from django.utils.timezone import utc
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('counter', '0002_auto_20160826_1342'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='permanency',
|
||||
name='activity',
|
||||
field=models.DateTimeField(verbose_name='activity time', auto_now=True, default=datetime.datetime(2016, 8, 26, 17, 5, 31, 202824, tzinfo=utc)),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
19
counter/migrations/0004_auto_20160826_1907.py
Normal file
19
counter/migrations/0004_auto_20160826_1907.py
Normal file
@ -0,0 +1,19 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('counter', '0003_permanency_activity'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='permanency',
|
||||
name='end',
|
||||
field=models.DateTimeField(verbose_name='end date', null=True),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user