mirror of https://github.com/nanoy42/coope
Yoann Piétri
5 years ago
24 changed files with 496 additions and 1050 deletions
@ -1,33 +0,0 @@ |
|||
# Generated by Django 2.1 on 2018-11-23 01:29 |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('gestion', '0001_initial'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.RenameField( |
|||
model_name='keghistory', |
|||
old_name='Keg', |
|||
new_name='keg', |
|||
), |
|||
migrations.AlterField( |
|||
model_name='keghistory', |
|||
name='amountSold', |
|||
field=models.DecimalField(decimal_places=2, default=0, max_digits=5), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='keghistory', |
|||
name='closingDate', |
|||
field=models.DateTimeField(blank=True, null=True), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='keghistory', |
|||
name='quantitySold', |
|||
field=models.DecimalField(decimal_places=2, default=0, max_digits=5), |
|||
), |
|||
] |
@ -1,22 +0,0 @@ |
|||
# Generated by Django 2.1 on 2018-11-23 02:30 |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('gestion', '0002_auto_20181123_0229'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterModelOptions( |
|||
name='keg', |
|||
options={'permissions': (('open_keg', 'Peut percuter les fûts'), ('close_keg', 'Peut fermer les fûts'))}, |
|||
), |
|||
migrations.AddField( |
|||
model_name='product', |
|||
name='adherentRequired', |
|||
field=models.BooleanField(default=True), |
|||
), |
|||
] |
@ -1,25 +0,0 @@ |
|||
# Generated by Django 2.1 on 2018-11-23 13:03 |
|||
|
|||
from django.conf import settings |
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), |
|||
('gestion', '0003_auto_20181123_0330'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.CreateModel( |
|||
name='Consumption', |
|||
fields=[ |
|||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|||
('quantity', models.PositiveIntegerField(default=0)), |
|||
('customer', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='consumption_global_taken', to=settings.AUTH_USER_MODEL)), |
|||
('product', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='gestion.Product')), |
|||
], |
|||
), |
|||
] |
@ -1,266 +0,0 @@ |
|||
# Generated by Django 2.1 on 2018-11-26 07:57 |
|||
|
|||
from django.conf import settings |
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
import simple_history.models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('preferences', '0003_historicalcotisation_historicalgeneralpreferences_historicalpaymentmethod'), |
|||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), |
|||
('gestion', '0004_consumption'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.CreateModel( |
|||
name='HistoricalConsumption', |
|||
fields=[ |
|||
('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), |
|||
('quantity', models.PositiveIntegerField(default=0)), |
|||
('history_id', models.AutoField(primary_key=True, serialize=False)), |
|||
('history_change_reason', models.CharField(max_length=100, null=True)), |
|||
('history_date', models.DateTimeField()), |
|||
('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), |
|||
('customer', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
('product', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='gestion.Product')), |
|||
], |
|||
options={ |
|||
'verbose_name': 'historical consumption', |
|||
'ordering': ('-history_date', '-history_id'), |
|||
'get_latest_by': 'history_date', |
|||
}, |
|||
bases=(simple_history.models.HistoricalChanges, models.Model), |
|||
), |
|||
migrations.CreateModel( |
|||
name='HistoricalConsumptionHistory', |
|||
fields=[ |
|||
('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), |
|||
('quantity', models.PositiveIntegerField(default=0)), |
|||
('date', models.DateTimeField(blank=True, editable=False)), |
|||
('amount', models.DecimalField(decimal_places=2, default=0, max_digits=7)), |
|||
('history_id', models.AutoField(primary_key=True, serialize=False)), |
|||
('history_change_reason', models.CharField(max_length=100, null=True)), |
|||
('history_date', models.DateTimeField()), |
|||
('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), |
|||
('coopeman', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
('customer', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
('menu', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='gestion.MenuHistory')), |
|||
('paymentMethod', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='preferences.PaymentMethod')), |
|||
('product', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='gestion.Product')), |
|||
], |
|||
options={ |
|||
'verbose_name': 'historical consumption history', |
|||
'ordering': ('-history_date', '-history_id'), |
|||
'get_latest_by': 'history_date', |
|||
}, |
|||
bases=(simple_history.models.HistoricalChanges, models.Model), |
|||
), |
|||
migrations.CreateModel( |
|||
name='HistoricalKeg', |
|||
fields=[ |
|||
('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), |
|||
('name', models.CharField(db_index=True, max_length=20, verbose_name='Nom')), |
|||
('stockHold', models.IntegerField(default=0, verbose_name='Stock en soute')), |
|||
('barcode', models.CharField(db_index=True, max_length=20, verbose_name='Code barre')), |
|||
('amount', models.DecimalField(decimal_places=2, max_digits=5, verbose_name='Prix du fût')), |
|||
('capacity', models.IntegerField(default=30, verbose_name='Capacité (L)')), |
|||
('is_active', models.BooleanField(default=False, verbose_name='Actif')), |
|||
('history_id', models.AutoField(primary_key=True, serialize=False)), |
|||
('history_change_reason', models.CharField(max_length=100, null=True)), |
|||
('history_date', models.DateTimeField()), |
|||
('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), |
|||
('demi', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='gestion.Product')), |
|||
('galopin', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='gestion.Product')), |
|||
('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
('pinte', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='gestion.Product')), |
|||
], |
|||
options={ |
|||
'verbose_name': 'historical keg', |
|||
'ordering': ('-history_date', '-history_id'), |
|||
'get_latest_by': 'history_date', |
|||
}, |
|||
bases=(simple_history.models.HistoricalChanges, models.Model), |
|||
), |
|||
migrations.CreateModel( |
|||
name='HistoricalKegHistory', |
|||
fields=[ |
|||
('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), |
|||
('openingDate', models.DateTimeField(blank=True, editable=False)), |
|||
('quantitySold', models.DecimalField(decimal_places=2, default=0, max_digits=5)), |
|||
('amountSold', models.DecimalField(decimal_places=2, default=0, max_digits=5)), |
|||
('closingDate', models.DateTimeField(blank=True, null=True)), |
|||
('isCurrentKegHistory', models.BooleanField(default=True)), |
|||
('history_id', models.AutoField(primary_key=True, serialize=False)), |
|||
('history_change_reason', models.CharField(max_length=100, null=True)), |
|||
('history_date', models.DateTimeField()), |
|||
('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), |
|||
('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
('keg', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='gestion.Keg')), |
|||
], |
|||
options={ |
|||
'verbose_name': 'historical keg history', |
|||
'ordering': ('-history_date', '-history_id'), |
|||
'get_latest_by': 'history_date', |
|||
}, |
|||
bases=(simple_history.models.HistoricalChanges, models.Model), |
|||
), |
|||
migrations.CreateModel( |
|||
name='HistoricalMenu', |
|||
fields=[ |
|||
('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), |
|||
('name', models.CharField(max_length=255, verbose_name='Nom')), |
|||
('amount', models.DecimalField(decimal_places=2, max_digits=5, verbose_name='Montant')), |
|||
('barcode', models.CharField(db_index=True, max_length=20, verbose_name='Code barre')), |
|||
('is_active', models.BooleanField(default=False, verbose_name='Actif')), |
|||
('history_id', models.AutoField(primary_key=True, serialize=False)), |
|||
('history_change_reason', models.CharField(max_length=100, null=True)), |
|||
('history_date', models.DateTimeField()), |
|||
('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), |
|||
('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
], |
|||
options={ |
|||
'verbose_name': 'historical menu', |
|||
'ordering': ('-history_date', '-history_id'), |
|||
'get_latest_by': 'history_date', |
|||
}, |
|||
bases=(simple_history.models.HistoricalChanges, models.Model), |
|||
), |
|||
migrations.CreateModel( |
|||
name='HistoricalMenuHistory', |
|||
fields=[ |
|||
('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), |
|||
('quantity', models.PositiveIntegerField(default=0)), |
|||
('date', models.DateTimeField(blank=True, editable=False)), |
|||
('amount', models.DecimalField(decimal_places=2, default=0, max_digits=5)), |
|||
('history_id', models.AutoField(primary_key=True, serialize=False)), |
|||
('history_change_reason', models.CharField(max_length=100, null=True)), |
|||
('history_date', models.DateTimeField()), |
|||
('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), |
|||
('PaymentMethod', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='preferences.PaymentMethod')), |
|||
('coopeman', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
('customer', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
('menu', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='gestion.Menu')), |
|||
], |
|||
options={ |
|||
'verbose_name': 'historical menu history', |
|||
'ordering': ('-history_date', '-history_id'), |
|||
'get_latest_by': 'history_date', |
|||
}, |
|||
bases=(simple_history.models.HistoricalChanges, models.Model), |
|||
), |
|||
migrations.CreateModel( |
|||
name='HistoricalProduct', |
|||
fields=[ |
|||
('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), |
|||
('name', models.CharField(db_index=True, max_length=40, verbose_name='Nom')), |
|||
('amount', models.DecimalField(decimal_places=2, max_digits=5, verbose_name='Prix de vente')), |
|||
('stockHold', models.IntegerField(default=0, verbose_name='Stock en soute')), |
|||
('stockBar', models.IntegerField(default=0, verbose_name='Stock en bar')), |
|||
('barcode', models.CharField(db_index=True, max_length=20, verbose_name='Code barre')), |
|||
('category', models.CharField(choices=[('PP', 'Pinte Pression'), ('DP', 'Demi Pression'), ('GP', 'Galopin pression'), ('BT', 'Bouteille'), ('SO', 'Soft'), ('FO', 'Bouffe autre que panini'), ('PA', 'Bouffe pour panini')], default='FO', max_length=2, verbose_name='Catégorie')), |
|||
('needQuantityButton', models.BooleanField(default=False, verbose_name='Bouton quantité')), |
|||
('is_active', models.BooleanField(default=True, verbose_name='Actif')), |
|||
('volume', models.IntegerField(default=0)), |
|||
('deg', models.DecimalField(decimal_places=2, default=0, max_digits=5, verbose_name='Degré')), |
|||
('adherentRequired', models.BooleanField(default=True)), |
|||
('history_id', models.AutoField(primary_key=True, serialize=False)), |
|||
('history_change_reason', models.CharField(max_length=100, null=True)), |
|||
('history_date', models.DateTimeField()), |
|||
('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), |
|||
('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
], |
|||
options={ |
|||
'verbose_name': 'historical product', |
|||
'ordering': ('-history_date', '-history_id'), |
|||
'get_latest_by': 'history_date', |
|||
}, |
|||
bases=(simple_history.models.HistoricalChanges, models.Model), |
|||
), |
|||
migrations.CreateModel( |
|||
name='HistoricalRaming', |
|||
fields=[ |
|||
('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), |
|||
('date', models.DateTimeField(blank=True, editable=False)), |
|||
('history_id', models.AutoField(primary_key=True, serialize=False)), |
|||
('history_change_reason', models.CharField(max_length=100, null=True)), |
|||
('history_date', models.DateTimeField()), |
|||
('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), |
|||
('coopeman', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
('keg', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='gestion.Keg')), |
|||
], |
|||
options={ |
|||
'verbose_name': 'historical raming', |
|||
'ordering': ('-history_date', '-history_id'), |
|||
'get_latest_by': 'history_date', |
|||
}, |
|||
bases=(simple_history.models.HistoricalChanges, models.Model), |
|||
), |
|||
migrations.CreateModel( |
|||
name='HistoricalRefund', |
|||
fields=[ |
|||
('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), |
|||
('date', models.DateTimeField(blank=True, editable=False)), |
|||
('amount', models.DecimalField(decimal_places=2, max_digits=5, verbose_name='Montant')), |
|||
('history_id', models.AutoField(primary_key=True, serialize=False)), |
|||
('history_change_reason', models.CharField(max_length=100, null=True)), |
|||
('history_date', models.DateTimeField()), |
|||
('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), |
|||
('coopeman', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
('customer', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
], |
|||
options={ |
|||
'verbose_name': 'historical refund', |
|||
'ordering': ('-history_date', '-history_id'), |
|||
'get_latest_by': 'history_date', |
|||
}, |
|||
bases=(simple_history.models.HistoricalChanges, models.Model), |
|||
), |
|||
migrations.CreateModel( |
|||
name='HistoricalReload', |
|||
fields=[ |
|||
('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), |
|||
('amount', models.DecimalField(decimal_places=2, max_digits=5, verbose_name='Montant')), |
|||
('date', models.DateTimeField(blank=True, editable=False)), |
|||
('history_id', models.AutoField(primary_key=True, serialize=False)), |
|||
('history_change_reason', models.CharField(max_length=100, null=True)), |
|||
('history_date', models.DateTimeField()), |
|||
('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), |
|||
('PaymentMethod', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='preferences.PaymentMethod')), |
|||
('coopeman', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
('customer', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
], |
|||
options={ |
|||
'verbose_name': 'historical reload', |
|||
'ordering': ('-history_date', '-history_id'), |
|||
'get_latest_by': 'history_date', |
|||
}, |
|||
bases=(simple_history.models.HistoricalChanges, models.Model), |
|||
), |
|||
migrations.CreateModel( |
|||
name='HistoricalStocking', |
|||
fields=[ |
|||
('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), |
|||
('date', models.DateTimeField(blank=True, editable=False)), |
|||
('history_id', models.AutoField(primary_key=True, serialize=False)), |
|||
('history_change_reason', models.CharField(max_length=100, null=True)), |
|||
('history_date', models.DateTimeField()), |
|||
('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), |
|||
('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
], |
|||
options={ |
|||
'verbose_name': 'historical stocking', |
|||
'ordering': ('-history_date', '-history_id'), |
|||
'get_latest_by': 'history_date', |
|||
}, |
|||
bases=(simple_history.models.HistoricalChanges, models.Model), |
|||
), |
|||
] |
@ -1,84 +0,0 @@ |
|||
# Generated by Django 2.1 on 2018-11-26 13:08 |
|||
|
|||
import django.core.validators |
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('gestion', '0005_historicalconsumption_historicalconsumptionhistory_historicalkeg_historicalkeghistory_historicalmenu'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='historicalkeg', |
|||
name='amount', |
|||
field=models.DecimalField(decimal_places=2, max_digits=5, validators=[django.core.validators.MinValueValidator(0)], verbose_name='Prix du fût'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='historicalmenu', |
|||
name='amount', |
|||
field=models.DecimalField(decimal_places=2, max_digits=5, validators=[django.core.validators.MinValueValidator(0)], verbose_name='Montant'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='historicalproduct', |
|||
name='amount', |
|||
field=models.DecimalField(decimal_places=2, max_digits=5, validators=[django.core.validators.MinValueValidator(0)], verbose_name='Prix de vente'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='historicalproduct', |
|||
name='deg', |
|||
field=models.DecimalField(decimal_places=2, default=0, max_digits=5, validators=[django.core.validators.MinValueValidator(0)], verbose_name='Degré'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='historicalproduct', |
|||
name='volume', |
|||
field=models.PositiveIntegerField(default=0), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='historicalrefund', |
|||
name='amount', |
|||
field=models.DecimalField(decimal_places=2, max_digits=5, validators=[django.core.validators.MinValueValidator(0)], verbose_name='Montant'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='historicalreload', |
|||
name='amount', |
|||
field=models.DecimalField(decimal_places=2, max_digits=5, validators=[django.core.validators.MinValueValidator(0)], verbose_name='Montant'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='keg', |
|||
name='amount', |
|||
field=models.DecimalField(decimal_places=2, max_digits=5, validators=[django.core.validators.MinValueValidator(0)], verbose_name='Prix du fût'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='menu', |
|||
name='amount', |
|||
field=models.DecimalField(decimal_places=2, max_digits=5, validators=[django.core.validators.MinValueValidator(0)], verbose_name='Montant'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='product', |
|||
name='amount', |
|||
field=models.DecimalField(decimal_places=2, max_digits=5, validators=[django.core.validators.MinValueValidator(0)], verbose_name='Prix de vente'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='product', |
|||
name='deg', |
|||
field=models.DecimalField(decimal_places=2, default=0, max_digits=5, validators=[django.core.validators.MinValueValidator(0)], verbose_name='Degré'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='product', |
|||
name='volume', |
|||
field=models.PositiveIntegerField(default=0), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='refund', |
|||
name='amount', |
|||
field=models.DecimalField(decimal_places=2, max_digits=5, validators=[django.core.validators.MinValueValidator(0)], verbose_name='Montant'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='reload', |
|||
name='amount', |
|||
field=models.DecimalField(decimal_places=2, max_digits=5, validators=[django.core.validators.MinValueValidator(0)], verbose_name='Montant'), |
|||
), |
|||
] |
@ -1,23 +0,0 @@ |
|||
# Generated by Django 2.1 on 2018-11-27 08:02 |
|||
|
|||
from django.db import migrations |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('gestion', '0006_auto_20181126_1408'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.RenameField( |
|||
model_name='historicalmenuhistory', |
|||
old_name='PaymentMethod', |
|||
new_name='paymentMethod', |
|||
), |
|||
migrations.RenameField( |
|||
model_name='menuhistory', |
|||
old_name='PaymentMethod', |
|||
new_name='paymentMethod', |
|||
), |
|||
] |
@ -1,21 +0,0 @@ |
|||
# Generated by Django 2.1 on 2018-11-30 18:04 |
|||
|
|||
from django.db import migrations |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('gestion', '0007_auto_20181127_0902'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.RemoveField( |
|||
model_name='consumptionhistory', |
|||
name='menu', |
|||
), |
|||
migrations.RemoveField( |
|||
model_name='historicalconsumptionhistory', |
|||
name='menu', |
|||
), |
|||
] |
@ -1,87 +0,0 @@ |
|||
# Generated by Django 2.1 on 2018-12-02 15:28 |
|||
|
|||
from django.db import migrations |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('gestion', '0008_auto_20181130_1904'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.RemoveField( |
|||
model_name='historicalstocking', |
|||
name='history_user', |
|||
), |
|||
migrations.DeleteModel( |
|||
name='Stocking', |
|||
), |
|||
migrations.AlterModelOptions( |
|||
name='consumption', |
|||
options={'verbose_name': 'Consommation totale'}, |
|||
), |
|||
migrations.AlterModelOptions( |
|||
name='consumptionhistory', |
|||
options={'verbose_name': 'Consommation'}, |
|||
), |
|||
migrations.AlterModelOptions( |
|||
name='historicalconsumption', |
|||
options={'get_latest_by': 'history_date', 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical Consommation totale'}, |
|||
), |
|||
migrations.AlterModelOptions( |
|||
name='historicalconsumptionhistory', |
|||
options={'get_latest_by': 'history_date', 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical Consommation'}, |
|||
), |
|||
migrations.AlterModelOptions( |
|||
name='historicalkeg', |
|||
options={'get_latest_by': 'history_date', 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical Fût'}, |
|||
), |
|||
migrations.AlterModelOptions( |
|||
name='historicalkeghistory', |
|||
options={'get_latest_by': 'history_date', 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical Historique de fût'}, |
|||
), |
|||
migrations.AlterModelOptions( |
|||
name='historicalmenuhistory', |
|||
options={'get_latest_by': 'history_date', 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical Historique de menu'}, |
|||
), |
|||
migrations.AlterModelOptions( |
|||
name='historicalproduct', |
|||
options={'get_latest_by': 'history_date', 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical Produit'}, |
|||
), |
|||
migrations.AlterModelOptions( |
|||
name='historicalrefund', |
|||
options={'get_latest_by': 'history_date', 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical Remboursement'}, |
|||
), |
|||
migrations.AlterModelOptions( |
|||
name='historicalreload', |
|||
options={'get_latest_by': 'history_date', 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical Rechargement'}, |
|||
), |
|||
migrations.AlterModelOptions( |
|||
name='keg', |
|||
options={'permissions': (('open_keg', 'Peut percuter les fûts'), ('close_keg', 'Peut fermer les fûts')), 'verbose_name': 'Fût'}, |
|||
), |
|||
migrations.AlterModelOptions( |
|||
name='keghistory', |
|||
options={'verbose_name': 'Historique de fût'}, |
|||
), |
|||
migrations.AlterModelOptions( |
|||
name='menuhistory', |
|||
options={'verbose_name': 'Historique de menu'}, |
|||
), |
|||
migrations.AlterModelOptions( |
|||
name='product', |
|||
options={'verbose_name': 'Produit'}, |
|||
), |
|||
migrations.AlterModelOptions( |
|||
name='refund', |
|||
options={'verbose_name': 'Remboursement'}, |
|||
), |
|||
migrations.AlterModelOptions( |
|||
name='reload', |
|||
options={'verbose_name': 'Rechargement'}, |
|||
), |
|||
migrations.DeleteModel( |
|||
name='HistoricalStocking', |
|||
), |
|||
] |
@ -1,74 +0,0 @@ |
|||
# Generated by Django 2.1 on 2018-12-05 00:42 |
|||
|
|||
import django.core.validators |
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('gestion', '0009_auto_20181202_1628'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='historicalkeg', |
|||
name='amount', |
|||
field=models.DecimalField(decimal_places=2, max_digits=7, validators=[django.core.validators.MinValueValidator(0)], verbose_name='Prix du fût'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='historicalmenu', |
|||
name='amount', |
|||
field=models.DecimalField(decimal_places=2, max_digits=7, validators=[django.core.validators.MinValueValidator(0)], verbose_name='Montant'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='historicalmenuhistory', |
|||
name='amount', |
|||
field=models.DecimalField(decimal_places=2, default=0, max_digits=7), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='historicalproduct', |
|||
name='adherentRequired', |
|||
field=models.BooleanField(default=True, verbose_name='Adhérent requis'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='historicalrefund', |
|||
name='amount', |
|||
field=models.DecimalField(decimal_places=2, max_digits=7, validators=[django.core.validators.MinValueValidator(0)], verbose_name='Montant'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='historicalreload', |
|||
name='amount', |
|||
field=models.DecimalField(decimal_places=2, max_digits=7, validators=[django.core.validators.MinValueValidator(0)], verbose_name='Montant'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='keg', |
|||
name='amount', |
|||
field=models.DecimalField(decimal_places=2, max_digits=7, validators=[django.core.validators.MinValueValidator(0)], verbose_name='Prix du fût'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='menu', |
|||
name='amount', |
|||
field=models.DecimalField(decimal_places=2, max_digits=7, validators=[django.core.validators.MinValueValidator(0)], verbose_name='Montant'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='menuhistory', |
|||
name='amount', |
|||
field=models.DecimalField(decimal_places=2, default=0, max_digits=7), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='product', |
|||
name='adherentRequired', |
|||
field=models.BooleanField(default=True, verbose_name='Adhérent requis'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='refund', |
|||
name='amount', |
|||
field=models.DecimalField(decimal_places=2, max_digits=7, validators=[django.core.validators.MinValueValidator(0)], verbose_name='Montant'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='reload', |
|||
name='amount', |
|||
field=models.DecimalField(decimal_places=2, max_digits=7, validators=[django.core.validators.MinValueValidator(0)], verbose_name='Montant'), |
|||
), |
|||
] |
@ -1,33 +0,0 @@ |
|||
# Generated by Django 2.1 on 2018-10-09 09:19 |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('preferences', '0001_initial'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AddField( |
|||
model_name='paymentmethod', |
|||
name='is_usable_in_reload', |
|||
field=models.BooleanField(default=True, verbose_name='Rechargements ?'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='paymentmethod', |
|||
name='affect_balance', |
|||
field=models.BooleanField(default=False, verbose_name='Affecte le solde'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='paymentmethod', |
|||
name='is_active', |
|||
field=models.BooleanField(default=True, verbose_name='Actif'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='paymentmethod', |
|||
name='is_usable_in_cotisation', |
|||
field=models.BooleanField(default=True, verbose_name='Cotisations ?'), |
|||
), |
|||
] |
@ -1,84 +0,0 @@ |
|||
# Generated by Django 2.1 on 2018-11-26 07:57 |
|||
|
|||
from django.conf import settings |
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
import simple_history.models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), |
|||
('preferences', '0002_auto_20181009_1119'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.CreateModel( |
|||
name='HistoricalCotisation', |
|||
fields=[ |
|||
('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), |
|||
('amount', models.DecimalField(decimal_places=2, max_digits=5, null=True, verbose_name='Montant')), |
|||
('duration', models.PositiveIntegerField(verbose_name='Durée de la cotisation (jours)')), |
|||
('history_id', models.AutoField(primary_key=True, serialize=False)), |
|||
('history_change_reason', models.CharField(max_length=100, null=True)), |
|||
('history_date', models.DateTimeField()), |
|||
('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), |
|||
('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
], |
|||
options={ |
|||
'verbose_name': 'historical cotisation', |
|||
'ordering': ('-history_date', '-history_id'), |
|||
'get_latest_by': 'history_date', |
|||
}, |
|||
bases=(simple_history.models.HistoricalChanges, models.Model), |
|||
), |
|||
migrations.CreateModel( |
|||
name='HistoricalGeneralPreferences', |
|||
fields=[ |
|||
('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), |
|||
('is_active', models.BooleanField(default=True)), |
|||
('active_message', models.TextField(blank=True)), |
|||
('global_message', models.TextField(blank=True)), |
|||
('president', models.CharField(blank=True, max_length=255)), |
|||
('vice_president', models.CharField(blank=True, max_length=255)), |
|||
('treasurer', models.CharField(blank=True, max_length=255)), |
|||
('secretary', models.CharField(blank=True, max_length=255)), |
|||
('brewer', models.CharField(blank=True, max_length=255)), |
|||
('grocer', models.CharField(blank=True, max_length=255)), |
|||
('history_id', models.AutoField(primary_key=True, serialize=False)), |
|||
('history_change_reason', models.CharField(max_length=100, null=True)), |
|||
('history_date', models.DateTimeField()), |
|||
('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), |
|||
('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
], |
|||
options={ |
|||
'verbose_name': 'historical general preferences', |
|||
'ordering': ('-history_date', '-history_id'), |
|||
'get_latest_by': 'history_date', |
|||
}, |
|||
bases=(simple_history.models.HistoricalChanges, models.Model), |
|||
), |
|||
migrations.CreateModel( |
|||
name='HistoricalPaymentMethod', |
|||
fields=[ |
|||
('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), |
|||
('name', models.CharField(max_length=255, verbose_name='Nom')), |
|||
('is_active', models.BooleanField(default=True, verbose_name='Actif')), |
|||
('is_usable_in_cotisation', models.BooleanField(default=True, verbose_name='Cotisations ?')), |
|||
('is_usable_in_reload', models.BooleanField(default=True, verbose_name='Rechargements ?')), |
|||
('affect_balance', models.BooleanField(default=False, verbose_name='Affecte le solde')), |
|||
('history_id', models.AutoField(primary_key=True, serialize=False)), |
|||
('history_change_reason', models.CharField(max_length=100, null=True)), |
|||
('history_date', models.DateTimeField()), |
|||
('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), |
|||
('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
], |
|||
options={ |
|||
'verbose_name': 'historical payment method', |
|||
'ordering': ('-history_date', '-history_id'), |
|||
'get_latest_by': 'history_date', |
|||
}, |
|||
bases=(simple_history.models.HistoricalChanges, models.Model), |
|||
), |
|||
] |
@ -1,24 +0,0 @@ |
|||
# Generated by Django 2.1 on 2018-11-26 13:08 |
|||
|
|||
import django.core.validators |
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('preferences', '0003_historicalcotisation_historicalgeneralpreferences_historicalpaymentmethod'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='cotisation', |
|||
name='amount', |
|||
field=models.DecimalField(decimal_places=2, max_digits=5, null=True, validators=[django.core.validators.MinValueValidator(0)], verbose_name='Montant'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='historicalcotisation', |
|||
name='amount', |
|||
field=models.DecimalField(decimal_places=2, max_digits=5, null=True, validators=[django.core.validators.MinValueValidator(0)], verbose_name='Montant'), |
|||
), |
|||
] |
@ -1,18 +0,0 @@ |
|||
# Generated by Django 2.1 on 2018-10-09 09:19 |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('users', '0001_initial'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='school', |
|||
name='name', |
|||
field=models.CharField(max_length=255, verbose_name='Nom'), |
|||
), |
|||
] |
@ -1,17 +0,0 @@ |
|||
# Generated by Django 2.1 on 2018-11-23 01:29 |
|||
|
|||
from django.db import migrations |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('users', '0002_auto_20181009_1119'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterModelOptions( |
|||
name='cotisationhistory', |
|||
options={'permissions': (('validate_consumptionhistory', 'Peut (in)valider les cotisations'),)}, |
|||
), |
|||
] |
@ -1,106 +0,0 @@ |
|||
# Generated by Django 2.1 on 2018-11-26 07:57 |
|||
|
|||
from django.conf import settings |
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
import simple_history.models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('preferences', '0003_historicalcotisation_historicalgeneralpreferences_historicalpaymentmethod'), |
|||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), |
|||
('users', '0003_auto_20181123_0229'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.CreateModel( |
|||
name='HistoricalCotisationHistory', |
|||
fields=[ |
|||
('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), |
|||
('amount', models.DecimalField(decimal_places=2, max_digits=5, verbose_name='Montant')), |
|||
('duration', models.PositiveIntegerField(verbose_name='Durée')), |
|||
('paymentDate', models.DateTimeField(blank=True, editable=False, verbose_name='Date du paiement')), |
|||
('endDate', models.DateTimeField(verbose_name='Fin de la cotisation')), |
|||
('valid', models.IntegerField(choices=[(0, 'En attente de validation'), (1, 'Validée'), (2, 'Invalidée')], default=0)), |
|||
('history_id', models.AutoField(primary_key=True, serialize=False)), |
|||
('history_change_reason', models.CharField(max_length=100, null=True)), |
|||
('history_date', models.DateTimeField()), |
|||
('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), |
|||
('coopeman', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
('cotisation', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='preferences.Cotisation')), |
|||
('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
('paymentMethod', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='preferences.PaymentMethod')), |
|||
('user', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
], |
|||
options={ |
|||
'verbose_name': 'historical cotisation history', |
|||
'ordering': ('-history_date', '-history_id'), |
|||
'get_latest_by': 'history_date', |
|||
}, |
|||
bases=(simple_history.models.HistoricalChanges, models.Model), |
|||
), |
|||
migrations.CreateModel( |
|||
name='HistoricalProfile', |
|||
fields=[ |
|||
('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), |
|||
('credit', models.DecimalField(decimal_places=2, default=0, max_digits=5)), |
|||
('debit', models.DecimalField(decimal_places=2, default=0, max_digits=5)), |
|||
('cotisationEnd', models.DateTimeField(blank=True, null=True)), |
|||
('history_id', models.AutoField(primary_key=True, serialize=False)), |
|||
('history_change_reason', models.CharField(max_length=100, null=True)), |
|||
('history_date', models.DateTimeField()), |
|||
('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), |
|||
('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
('school', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='users.School')), |
|||
('user', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
], |
|||
options={ |
|||
'verbose_name': 'historical profile', |
|||
'ordering': ('-history_date', '-history_id'), |
|||
'get_latest_by': 'history_date', |
|||
}, |
|||
bases=(simple_history.models.HistoricalChanges, models.Model), |
|||
), |
|||
migrations.CreateModel( |
|||
name='HistoricalSchool', |
|||
fields=[ |
|||
('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), |
|||
('name', models.CharField(max_length=255, verbose_name='Nom')), |
|||
('history_id', models.AutoField(primary_key=True, serialize=False)), |
|||
('history_change_reason', models.CharField(max_length=100, null=True)), |
|||
('history_date', models.DateTimeField()), |
|||
('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), |
|||
('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
], |
|||
options={ |
|||
'verbose_name': 'historical school', |
|||
'ordering': ('-history_date', '-history_id'), |
|||
'get_latest_by': 'history_date', |
|||
}, |
|||
bases=(simple_history.models.HistoricalChanges, models.Model), |
|||
), |
|||
migrations.CreateModel( |
|||
name='HistoricalWhiteListHistory', |
|||
fields=[ |
|||
('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), |
|||
('paymentDate', models.DateTimeField(blank=True, editable=False)), |
|||
('endDate', models.DateTimeField()), |
|||
('duration', models.PositiveIntegerField(help_text="Durée de l'accès gracieux en jour", verbose_name='Durée')), |
|||
('history_id', models.AutoField(primary_key=True, serialize=False)), |
|||
('history_change_reason', models.CharField(max_length=100, null=True)), |
|||
('history_date', models.DateTimeField()), |
|||
('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), |
|||
('coopeman', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
('user', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to=settings.AUTH_USER_MODEL)), |
|||
], |
|||
options={ |
|||
'verbose_name': 'historical white list history', |
|||
'ordering': ('-history_date', '-history_id'), |
|||
'get_latest_by': 'history_date', |
|||
}, |
|||
bases=(simple_history.models.HistoricalChanges, models.Model), |
|||
), |
|||
] |
@ -1,45 +0,0 @@ |
|||
# Generated by Django 2.1 on 2018-12-02 15:28 |
|||
|
|||
from django.db import migrations |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('users', '0004_historicalcotisationhistory_historicalprofile_historicalschool_historicalwhitelisthistory'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterModelOptions( |
|||
name='cotisationhistory', |
|||
options={'permissions': (('validate_cotisationhistory', 'Peut (in)valider les cotisations'),), 'verbose_name': 'Historique cotisation'}, |
|||
), |
|||
migrations.AlterModelOptions( |
|||
name='historicalcotisationhistory', |
|||
options={'get_latest_by': 'history_date', 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical Historique cotisation'}, |
|||
), |
|||
migrations.AlterModelOptions( |
|||
name='historicalprofile', |
|||
options={'get_latest_by': 'history_date', 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical Profil'}, |
|||
), |
|||
migrations.AlterModelOptions( |
|||
name='historicalschool', |
|||
options={'get_latest_by': 'history_date', 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical École'}, |
|||
), |
|||
migrations.AlterModelOptions( |
|||
name='historicalwhitelisthistory', |
|||
options={'get_latest_by': 'history_date', 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical Historique accès gracieux'}, |
|||
), |
|||
migrations.AlterModelOptions( |
|||
name='profile', |
|||
options={'verbose_name': 'Profil'}, |
|||
), |
|||
migrations.AlterModelOptions( |
|||
name='school', |
|||
options={'verbose_name': 'École'}, |
|||
), |
|||
migrations.AlterModelOptions( |
|||
name='whitelisthistory', |
|||
options={'verbose_name': 'Historique accès gracieux'}, |
|||
), |
|||
] |
@ -1,33 +0,0 @@ |
|||
# Generated by Django 2.1 on 2018-12-05 00:42 |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('users', '0005_auto_20181202_1628'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='historicalprofile', |
|||
name='credit', |
|||
field=models.DecimalField(decimal_places=2, default=0, max_digits=7), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='historicalprofile', |
|||
name='debit', |
|||
field=models.DecimalField(decimal_places=2, default=0, max_digits=7), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='profile', |
|||
name='credit', |
|||
field=models.DecimalField(decimal_places=2, default=0, max_digits=7), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='profile', |
|||
name='debit', |
|||
field=models.DecimalField(decimal_places=2, default=0, max_digits=7), |
|||
), |
|||
] |
Loading…
Reference in new issue