mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 11:23:10 +00:00
Remove useless MinValueValidator(0) on PositiveIntegerField.
This commit is contained in:
parent
08aa4c043e
commit
7f36b642ac
2 changed files with 45 additions and 6 deletions
45
cotisations/migrations/0051_auto_20201228_1636.py
Normal file
45
cotisations/migrations/0051_auto_20201228_1636.py
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.11.29 on 2020-12-28 15:36
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('cotisations', '0050_auto_20201102_2342'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='article',
|
||||||
|
name='duration_connection',
|
||||||
|
field=models.PositiveIntegerField(verbose_name='duration of the connection (in months)'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='article',
|
||||||
|
name='duration_days_connection',
|
||||||
|
field=models.PositiveIntegerField(verbose_name='duration of the connection (in days, will be added to duration in months)'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='article',
|
||||||
|
name='duration_days_membership',
|
||||||
|
field=models.PositiveIntegerField(verbose_name='duration of the membership (in days, will be added to duration in months)'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='article',
|
||||||
|
name='duration_membership',
|
||||||
|
field=models.PositiveIntegerField(verbose_name='duration of the membership (in months)'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='vente',
|
||||||
|
name='duration_days_connection',
|
||||||
|
field=models.PositiveIntegerField(default=0, verbose_name='duration of the connection (in days, will be added to duration in months)'),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='vente',
|
||||||
|
name='duration_days_membership',
|
||||||
|
field=models.PositiveIntegerField(default=0, verbose_name='duration of the membership (in days, will be added to duration in months)'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -467,7 +467,6 @@ class Vente(RevMixin, AclMixin, models.Model):
|
||||||
)
|
)
|
||||||
duration_days_connection = models.PositiveIntegerField(
|
duration_days_connection = models.PositiveIntegerField(
|
||||||
default=0,
|
default=0,
|
||||||
validators=[MinValueValidator(0)],
|
|
||||||
verbose_name=_("duration of the connection (in days, will be added to duration in months)"),
|
verbose_name=_("duration of the connection (in days, will be added to duration in months)"),
|
||||||
)
|
)
|
||||||
duration_membership = models.PositiveIntegerField(
|
duration_membership = models.PositiveIntegerField(
|
||||||
|
@ -475,7 +474,6 @@ class Vente(RevMixin, AclMixin, models.Model):
|
||||||
)
|
)
|
||||||
duration_days_membership = models.PositiveIntegerField(
|
duration_days_membership = models.PositiveIntegerField(
|
||||||
default=0,
|
default=0,
|
||||||
validators=[MinValueValidator(0)],
|
|
||||||
verbose_name=_("duration of the membership (in days, will be added to duration in months)"),
|
verbose_name=_("duration of the membership (in days, will be added to duration in months)"),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -704,19 +702,15 @@ class Article(RevMixin, AclMixin, models.Model):
|
||||||
)
|
)
|
||||||
|
|
||||||
duration_membership = models.PositiveIntegerField(
|
duration_membership = models.PositiveIntegerField(
|
||||||
validators=[MinValueValidator(0)],
|
|
||||||
verbose_name=_("duration of the membership (in months)")
|
verbose_name=_("duration of the membership (in months)")
|
||||||
)
|
)
|
||||||
duration_days_membership = models.PositiveIntegerField(
|
duration_days_membership = models.PositiveIntegerField(
|
||||||
validators=[MinValueValidator(0)],
|
|
||||||
verbose_name=_("duration of the membership (in days, will be added to duration in months)"),
|
verbose_name=_("duration of the membership (in days, will be added to duration in months)"),
|
||||||
)
|
)
|
||||||
duration_connection = models.PositiveIntegerField(
|
duration_connection = models.PositiveIntegerField(
|
||||||
validators=[MinValueValidator(0)],
|
|
||||||
verbose_name=_("duration of the connection (in months)")
|
verbose_name=_("duration of the connection (in months)")
|
||||||
)
|
)
|
||||||
duration_days_connection = models.PositiveIntegerField(
|
duration_days_connection = models.PositiveIntegerField(
|
||||||
validators=[MinValueValidator(0)],
|
|
||||||
verbose_name=_("duration of the connection (in days, will be added to duration in months)"),
|
verbose_name=_("duration of the connection (in days, will be added to duration in months)"),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue