This commit is contained in:
François Poulain 2024-05-15 15:38:59 +02:00
parent 3b716d6b35
commit 75e0fb9f57
3 changed files with 4 additions and 1 deletions

View File

@ -10,6 +10,7 @@ import nested_admin
from . import models
def clean(d):
if d == d.to_integral():
return d.quantize(Decimal(1))

View File

@ -1,7 +1,8 @@
# Generated by Django 4.2.13 on 2024-05-15 10:19
from django.db import migrations, models
import django.db.models.deletion
from django.db import migrations, models
import fournée.core.models

View File

@ -1,6 +1,7 @@
# Generated by Django 4.2.13 on 2024-05-15 10:37
from django.db import migrations, models
import fournée.core.models