Use FloatField

This commit is contained in:
Christian Cueni 2024-02-20 11:05:28 +01:00
parent 3e270e97ff
commit f94ee0a26d
2 changed files with 1 additions and 18 deletions

View File

@ -1,17 +0,0 @@
# Generated by Django 3.2.20 on 2024-02-15 10:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("core", "0006_auto_20240125_0915"),
]
operations = [
migrations.AddField(
model_name="country",
name="order_id",
field=models.PositiveIntegerField(default=20),
),
]

View File

@ -26,7 +26,7 @@ class Country(models.Model):
name_de = models.CharField(max_length=255)
name_fr = models.CharField(max_length=255)
name_it = models.CharField(max_length=255)
order_id = models.PositiveIntegerField(default=10)
order_id = models.FloatField(default=20)
def __str__(self):
return f"{self.name_de} ({self.country_id})"