8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-22 03:13:12 +00:00

Remove useless MinValueValidator(0) on PositiveIntegerField.

This commit is contained in:
Hugo Levy-Falk 2020-12-28 16:37:43 +01:00 committed by Gabriel Detraz
parent a56f3a4b96
commit 3014b9ac2e
2 changed files with 45 additions and 6 deletions

View 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)'),
),
]

View file

@ -467,7 +467,6 @@ class Vente(RevMixin, AclMixin, models.Model):
)
duration_days_connection = models.PositiveIntegerField(
default=0,
validators=[MinValueValidator(0)],
verbose_name=_("duration of the connection (in days, will be added to duration in months)"),
)
duration_membership = models.PositiveIntegerField(
@ -475,7 +474,6 @@ class Vente(RevMixin, AclMixin, models.Model):
)
duration_days_membership = models.PositiveIntegerField(
default=0,
validators=[MinValueValidator(0)],
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(
validators=[MinValueValidator(0)],
verbose_name=_("duration of the membership (in months)")
)
duration_days_membership = models.PositiveIntegerField(
validators=[MinValueValidator(0)],
verbose_name=_("duration of the membership (in days, will be added to duration in months)"),
)
duration_connection = models.PositiveIntegerField(
validators=[MinValueValidator(0)],
verbose_name=_("duration of the connection (in months)")
)
duration_days_connection = models.PositiveIntegerField(
validators=[MinValueValidator(0)],
verbose_name=_("duration of the connection (in days, will be added to duration in months)"),
)