("available_for_everyone",models.BooleanField(default=False,verbose_name="is available for every user",)),
(
("is_balance",models.BooleanField(default=False,editable=False,verbose_name="is user balance",help_text="There should be only one balance payment method.",validators=[cotisations.models.check_no_balance]))
"available_for_everyone",
models.BooleanField(
default=False,
verbose_name="is available for every user",
),
),
(
"is_balance",
models.BooleanField(
default=False,
editable=False,
verbose_name="is user balance",
help_text="There should be only one balance payment method.",
validators=[cotisations.models.check_no_balance],
),
),
],
],
options={
options={
"permissions":(("view_paiement","Can view a payment method object"),("use_every_payment","Can use every payment method")),
"permissions":(
("view_paiement","Can view a payment method object"),
("use_every_payment","Can use every payment method"),
),
"verbose_name":"payment method",
"verbose_name":"payment method",
"verbose_name_plural":"payment methods"
"verbose_name_plural":"payment methods",
}
},
),
),
migrations.CreateModel(
migrations.CreateModel(
name="Cotisation",
name="Cotisation",
@ -401,17 +433,31 @@ class Migration(migrations.Migration):
verbose_name="ID",
verbose_name="ID",
),
),
),
),
("date_start_con",models.DateTimeField(verbose_name="start date for the connection")),
(
("date_end_con",models.DateTimeField(verbose_name="end date for the connection")),
"date_start_con",
("date_start_memb",models.DateTimeField(verbose_name="start date for the membership")),
models.DateTimeField(verbose_name="start date for the connection"),
("date_end_memb",models.DateTimeField(verbose_name="end date for the membership"))
),
(
"date_end_con",
models.DateTimeField(verbose_name="end date for the connection"),
),
(
"date_start_memb",
models.DateTimeField(verbose_name="start date for the membership"),
),
(
"date_end_memb",
models.DateTimeField(verbose_name="end date for the membership"),
),
],
],
options={
options={
"permissions":(("view_cotisation","Can view a subscription object"),("change_all_cotisation","Can edit the previous subscriptions")),
"permissions":(
"verbose_name":"subscription",
("view_cotisation","Can view a subscription object"),
"verbose_name_plural":"subscriptions"
("change_all_cotisation","Can edit the previous subscriptions"),
}
),
"verbose_name":"subscription",
"verbose_name_plural":"subscriptions",
},
),
),
migrations.CreateModel(
migrations.CreateModel(
name="BalancePayment",
name="BalancePayment",
@ -426,12 +472,36 @@ class Migration(migrations.Migration):
verbose_name="ID",
verbose_name="ID",
),
),
),
),
("minimum_balance",models.DecimalField(verbose_name="minimum balance",help_text="The minimal amount of money allowed for the balance at the end of a payment. You can specify a negative amount.",max_digits=5,decimal_places=2,default=0)),
(
("maximum_balance",models.DecimalField(verbose_name="maximum balance",help_text="The maximal amount of money allowed for the balance.",max_digits=5,decimal_places=2,default=50,blank=True,null=True)),
"minimum_balance",
("credit_balance_allowed",models.BooleanField(verbose_name="allow user to credit their balance",default=False))
models.DecimalField(
verbose_name="minimum balance",
help_text="The minimal amount of money allowed for the balance at the end of a payment. You can specify a negative amount.",
max_digits=5,
decimal_places=2,
default=0,
),
),
(
"maximum_balance",
models.DecimalField(
verbose_name="maximum balance",
help_text="The maximal amount of money allowed for the balance.",
max_digits=5,
decimal_places=2,
default=50,
blank=True,
null=True,
),
),
(
"credit_balance_allowed",
models.BooleanField(
verbose_name="allow user to credit their balance",default=False
),
),
],
],
options={"verbose_name","user balance"}
options={"verbose_name","user balance"},
),
),
migrations.CreateModel(
migrations.CreateModel(
name="ChequePayment",
name="ChequePayment",
@ -447,7 +517,7 @@ class Migration(migrations.Migration):
),
),
),
),
],
],
options={"verbose_name","cheque"}
options={"verbose_name","cheque"},
),
),
migrations.CreateModel(
migrations.CreateModel(
name="ComnpayPayment",
name="ComnpayPayment",
@ -462,12 +532,43 @@ class Migration(migrations.Migration):
("minimum_payment",models.DecimalField(verbose_name="minimum payment",help_text="The minimal amount of money you have to use when paying with ComNpay.",max_digits=5,decimal_places=2,default=1)),
models.CharField(
("production",models.BooleanField(default=True,verbose_name="production mode enabled (production URL, instead of homologation)"))
max_length=255,
default="",
blank=True,
verbose_name="ComNpay VAT Number",
),
),
(
"payment_pass",
re2o.aes_field.AESEncryptedField(
max_length=255,
null=True,
blank=True,
verbose_name="ComNpay secret key",
),
),
(
"minimum_payment",
models.DecimalField(
verbose_name="minimum payment",
help_text="The minimal amount of money you have to use when paying with ComNpay.",
max_digits=5,
decimal_places=2,
default=1,
),
),
(
"production",
models.BooleanField(
default=True,
verbose_name="production mode enabled (production URL, instead of homologation)",
),
),
],
],
options={"verbose_name","ComNpay"}
options={"verbose_name","ComNpay"},
),
),
migrations.CreateModel(
migrations.CreateModel(
name="FreePayment",
name="FreePayment",
@ -483,7 +584,7 @@ class Migration(migrations.Migration):
),
),
),
),
],
],
options={"verbose_name","Free payment"}
options={"verbose_name","Free payment"},
),
),
migrations.CreateModel(
migrations.CreateModel(
name="NotePayment",
name="NotePayment",
@ -500,12 +601,8 @@ class Migration(migrations.Migration):