8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-24 16:03:47 +00:00
re2o/cotisations/migrations/0033_auto_20180818_1319.py

305 lines
10 KiB
Python
Raw Normal View History

2018-06-23 17:54:20 +00:00
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2018-08-18 11:19
from __future__ import unicode_literals
import cotisations.validators
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import re2o.aes_field
class Migration(migrations.Migration):
dependencies = [("cotisations", "0032_custom_invoice")]
2018-06-23 17:54:20 +00:00
operations = [
migrations.AlterModelOptions(
name="article",
options={
"permissions": (
("view_article", "Can view an article object"),
("buy_every_article", "Can buy every article"),
),
"verbose_name": "article",
"verbose_name_plural": "articles",
},
2018-06-23 17:54:20 +00:00
),
migrations.AlterModelOptions(
name="balancepayment", options={"verbose_name": "user balance"}
2018-06-23 17:54:20 +00:00
),
migrations.AlterModelOptions(
name="banque",
options={
"permissions": (("view_banque", "Can view a bank object"),),
"verbose_name": "bank",
"verbose_name_plural": "banks",
},
2018-06-23 17:54:20 +00:00
),
migrations.AlterModelOptions(
name="cotisation",
options={
"permissions": (
("view_cotisation", "Can view a subscription object"),
("change_all_cotisation", "Can edit the previous subscriptions"),
),
"verbose_name": "subscription",
"verbose_name_plural": "subscriptions",
},
2018-06-23 17:54:20 +00:00
),
migrations.AlterModelOptions(
name="custominvoice",
options={
"permissions": (
("view_custominvoice", "Can view a custom invoice object"),
)
},
2018-06-23 17:54:20 +00:00
),
migrations.AlterModelOptions(
name="facture",
options={
"permissions": (
("change_facture_control", 'Can edit the "controlled" state'),
("view_facture", "Can view an invoice object"),
("change_all_facture", "Can edit all the previous invoices"),
),
"verbose_name": "invoice",
"verbose_name_plural": "invoices",
},
2018-06-23 17:54:20 +00:00
),
migrations.AlterModelOptions(
name="paiement",
options={
"permissions": (
("view_paiement", "Can view a payment method object"),
("use_every_payment", "Can use every payment method"),
),
"verbose_name": "payment method",
"verbose_name_plural": "payment methods",
},
2018-06-23 17:54:20 +00:00
),
migrations.AlterModelOptions(
name="vente",
options={
"permissions": (
("view_vente", "Can view a purchase object"),
("change_all_vente", "Can edit all the previous purchases"),
),
"verbose_name": "purchase",
"verbose_name_plural": "purchases",
},
2018-06-23 17:54:20 +00:00
),
migrations.AlterField(
model_name="article",
name="available_for_everyone",
field=models.BooleanField(
default=False, verbose_name="is available for every user"
),
2018-06-23 17:54:20 +00:00
),
migrations.AlterField(
model_name="article",
name="duration",
field=models.PositiveIntegerField(
blank=True,
null=True,
validators=[django.core.validators.MinValueValidator(0)],
verbose_name="duration (in months)",
),
2018-06-23 17:54:20 +00:00
),
migrations.AlterField(
model_name="article",
name="name",
field=models.CharField(max_length=255, verbose_name="designation"),
2018-06-23 17:54:20 +00:00
),
migrations.AlterField(
model_name="article",
name="prix",
field=models.DecimalField(
decimal_places=2, max_digits=5, verbose_name="unit price"
),
2018-06-23 17:54:20 +00:00
),
migrations.AlterField(
model_name="article",
name="type_cotisation",
field=models.CharField(
blank=True,
choices=[
("Connexion", "Connection"),
("Adhesion", "Membership"),
("All", "Both of them"),
],
default=None,
max_length=255,
null=True,
verbose_name="subscription type",
),
2018-06-23 17:54:20 +00:00
),
migrations.AlterField(
model_name="article",
name="type_user",
field=models.CharField(
choices=[
("Adherent", "Member"),
("Club", "Club"),
("All", "Both of them"),
],
default="All",
max_length=255,
verbose_name="type of users concerned",
),
2018-06-23 17:54:20 +00:00
),
migrations.AlterField(
model_name="banque", name="name", field=models.CharField(max_length=255)
2018-06-23 17:54:20 +00:00
),
migrations.AlterField(
model_name="comnpaypayment",
name="payment_credential",
field=models.CharField(
blank=True,
default="",
max_length=255,
verbose_name="ComNpay VAT Number",
),
2018-06-23 17:54:20 +00:00
),
migrations.AlterField(
model_name="comnpaypayment",
name="payment_pass",
field=re2o.aes_field.AESEncryptedField(
blank=True, max_length=255, null=True, verbose_name="ComNpay secret key"
),
2018-06-23 17:54:20 +00:00
),
migrations.AlterField(
model_name="comnpaypayment",
name="production",
field=models.BooleanField(
default=True,
verbose_name="Production mode enabled (production URL, instead of homologation)",
),
2018-06-23 17:54:20 +00:00
),
migrations.AlterField(
model_name="cotisation",
name="date_end",
field=models.DateTimeField(verbose_name="end date"),
2018-06-23 17:54:20 +00:00
),
migrations.AlterField(
model_name="cotisation",
name="date_start",
field=models.DateTimeField(verbose_name="start date"),
2018-06-23 17:54:20 +00:00
),
migrations.AlterField(
model_name="cotisation",
name="type_cotisation",
field=models.CharField(
choices=[
("Connexion", "Connection"),
("Adhesion", "Membership"),
("All", "Both of them"),
],
default="All",
max_length=255,
verbose_name="subscription type",
),
2018-06-23 17:54:20 +00:00
),
migrations.AlterField(
model_name="cotisation",
name="vente",
field=models.OneToOneField(
null=True,
on_delete=django.db.models.deletion.CASCADE,
to="cotisations.Vente",
verbose_name="purchase",
),
2018-06-23 17:54:20 +00:00
),
migrations.AlterField(
model_name="facture",
name="cheque",
field=models.CharField(
blank=True, max_length=255, verbose_name="cheque number"
),
2018-06-23 17:54:20 +00:00
),
migrations.AlterField(
model_name="facture",
name="control",
field=models.BooleanField(default=False, verbose_name="controlled"),
2018-06-23 17:54:20 +00:00
),
migrations.AlterField(
model_name="facture",
name="valid",
field=models.BooleanField(default=True, verbose_name="validated"),
2018-06-23 17:54:20 +00:00
),
migrations.AlterField(
model_name="paiement",
name="available_for_everyone",
field=models.BooleanField(
default=False, verbose_name="is available for every user"
),
2018-06-23 17:54:20 +00:00
),
migrations.AlterField(
model_name="paiement",
name="is_balance",
field=models.BooleanField(
default=False,
editable=False,
help_text="There should be only one balance payment method.",
validators=[cotisations.validators.check_no_balance],
verbose_name="is user balance",
),
2018-06-23 17:54:20 +00:00
),
migrations.AlterField(
model_name="paiement",
name="moyen",
field=models.CharField(max_length=255, verbose_name="method"),
2018-06-23 17:54:20 +00:00
),
migrations.AlterField(
model_name="vente",
name="duration",
field=models.PositiveIntegerField(
blank=True, null=True, verbose_name="duration (in months)"
),
2018-06-23 17:54:20 +00:00
),
migrations.AlterField(
model_name="vente",
name="facture",
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="cotisations.BaseInvoice",
verbose_name="invoice",
),
2018-06-23 17:54:20 +00:00
),
migrations.AlterField(
model_name="vente",
name="name",
field=models.CharField(max_length=255, verbose_name="article"),
2018-06-23 17:54:20 +00:00
),
migrations.AlterField(
model_name="vente",
name="number",
field=models.IntegerField(
validators=[django.core.validators.MinValueValidator(1)],
verbose_name="amount",
),
2018-06-23 17:54:20 +00:00
),
migrations.AlterField(
model_name="vente",
name="prix",
field=models.DecimalField(
decimal_places=2, max_digits=5, verbose_name="price"
),
2018-06-23 17:54:20 +00:00
),
migrations.AlterField(
model_name="vente",
name="type_cotisation",
field=models.CharField(
blank=True,
choices=[
("Connexion", "Connection"),
("Adhesion", "Membership"),
("All", "Both of them"),
],
max_length=255,
null=True,
verbose_name="subscription type",
),
2018-06-23 17:54:20 +00:00
),
]