("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={
"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_plural":"payment methods"
}
),
"verbose_name_plural":"payment methods",
},
),
migrations.CreateModel(
name="Cotisation",
bases=(
...
...
@@ -401,18 +433,32 @@ class Migration(migrations.Migration):
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_memb",models.DateTimeField(verbose_name="start date for the membership")),
("date_end_memb",models.DateTimeField(verbose_name="end date for the membership"))
],
(
"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_memb",
models.DateTimeField(verbose_name="start date for the membership"),
),
(
"date_end_memb",
models.DateTimeField(verbose_name="end date for the membership"),
),
],
options={
"permissions":(("view_cotisation","Can view a subscription object"),("change_all_cotisation","Can edit the previous subscriptions")),
"verbose_name":"subscription",
"verbose_name_plural":"subscriptions"
}
),
"permissions":(
("view_cotisation","Can view a subscription object"),
("change_all_cotisation","Can edit the previous subscriptions"),
@@ -426,13 +472,37 @@ class Migration(migrations.Migration):
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)),
("credit_balance_allowed",models.BooleanField(verbose_name="allow user to credit their balance",default=False))
],
options={"verbose_name","user balance"}
),
(
"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,
),
),
(
"credit_balance_allowed",
models.BooleanField(
verbose_name="allow user to credit their balance",default=False
("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"}
),
(
"payment_credential",
models.CharField(
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)",