Hello everyone,
the makemigrations command keeps on creating updates for fields that have not changed, in particular choice fields. I suppose I did something wrong somewhere but I'm unsure how to track this.
It happened a while ago and I did not mind, but it starts to clutter my migration files with a lot of useless information, for example here, none of the fields have actually changed. Does anyone have an idea where to look for answers ?
# Generated by Django 5.0.6 on 2025-05-04 06:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('website', '0122_alter_compte_statut_and_more'),
]
operations = [
migrations.AlterField(
model_name='circuit',
name='type',
field=models.CharField(choices=[('ECL', 'éclairage & prises co'), ('PC', 'prises fixes'), ('PSP', 'circuit spécialisé')], max_length=3),
),
migrations.AlterField(
model_name='compte',
name='statut',
field=models.CharField(choices=[('CH', 'chaud'), ('FR', 'froid'), ('PR', 'perdu'), ('AR', 'archivé'), ('PP', 'prospect'), ('CC', 'conclu')], default='PP', max_length=2),
),
migrations.AlterField(
model_name='compte',
name='tranche_effectif_etablissement',
field=models.CharField(blank=True, choices=[('02', '3 à 5 salariés'), ('53', '10 000 salariés et plus'), ('32', '250 à 499 salariés'), ('NN', 'Etablissement non-employeur ou présumé non-employeur'), ('42', '1 000 à 1 999 salariés'), ('01', '1 ou 2 salariés'), ('41', '500 à 999 salariés'), ('21', '50 à 99 salariés'), ('12', '20 à 49 salariés'), ('31', '200 à 249 salariés'), ('11', '10 à 19 salariés'), ('00', '0 salarié'), ('03', '6 à 9 salariés'), ('52', '5 000 à 9 999 salariés'), ('22', '100 à 199 salariés'), ('51', '2 000 à 4 999 salariés')], max_length=4, null=True),
),
]