-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into feature/instructor-view
- Loading branch information
Showing
39 changed files
with
1,007 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -159,4 +159,3 @@ jobs: | |
name: playwright-report | ||
path: playwright-report/ | ||
retention-days: 30 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# Generated by Django 4.2.13 on 2024-12-16 10:52 | ||
|
||
import django.contrib.postgres.fields | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("hedges", "0001_initial"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="Species", | ||
fields=[ | ||
( | ||
"id", | ||
models.BigAutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
( | ||
"common_name", | ||
models.CharField(max_length=255, verbose_name="Nom commun"), | ||
), | ||
( | ||
"scientific_name", | ||
models.CharField(max_length=255, verbose_name="Nom scientifique"), | ||
), | ||
( | ||
"hedge_types", | ||
django.contrib.postgres.fields.ArrayField( | ||
base_field=models.CharField( | ||
choices=[ | ||
("degradee", "Haie dégradée ou résiduelle basse"), | ||
("buissonnante", "Haie buissonnante basse"), | ||
("arbustive", "Haie arbustive"), | ||
("alignement", "Alignement d'arbres"), | ||
("mixte", "Haie mixte"), | ||
], | ||
max_length=32, | ||
), | ||
size=None, | ||
verbose_name="Types de haies considérés", | ||
), | ||
), | ||
( | ||
"proximite_mare", | ||
models.BooleanField(verbose_name="Mare à moins de 200\xa0m"), | ||
), | ||
( | ||
"proximite_point_eau", | ||
models.BooleanField( | ||
verbose_name="Mare ou ruisseau à moins de 10\xa0m" | ||
), | ||
), | ||
( | ||
"connexion_boisement", | ||
models.BooleanField( | ||
verbose_name="Connectée à un boisement ou à une autre haie" | ||
), | ||
), | ||
( | ||
"vieil_arbre", | ||
models.BooleanField( | ||
verbose_name="Contient un ou plusieurs vieux arbres, fissurés ou avec cavités" | ||
), | ||
), | ||
], | ||
options={ | ||
"verbose_name": "Espèce", | ||
"verbose_name_plural": "Espèces", | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Generated by Django 4.2.13 on 2024-12-19 10:19 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("hedges", "0002_species"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="species", | ||
name="group", | ||
field=models.CharField( | ||
choices=[ | ||
("amphibiens", "Amphibiens"), | ||
("chauves-souris", "Chauves-souris"), | ||
("flore", "Flore"), | ||
("insectes", "Insectes"), | ||
("mammifères-terrestres", "Mammifères terrestres"), | ||
("oiseaux", "Oiseaux"), | ||
("reptile", "Reptile"), | ||
], | ||
default="flore", | ||
max_length=64, | ||
verbose_name="Groupe", | ||
), | ||
preserve_default=False, | ||
), | ||
] |
37 changes: 37 additions & 0 deletions
37
envergo/hedges/migrations/0004_species_highly_sentitive_species_level_of_concern.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Generated by Django 4.2.13 on 2025-01-07 10:18 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("hedges", "0003_species_group"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="species", | ||
name="highly_sentitive", | ||
field=models.BooleanField( | ||
default=False, verbose_name="Particulièrement sensible" | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="species", | ||
name="level_of_concern", | ||
field=models.CharField( | ||
choices=[ | ||
("faible", "Faible"), | ||
("moyen", "Moyen"), | ||
("fort", "Fort"), | ||
("tres_fort", "Très fort"), | ||
("majeur", "Majeur"), | ||
], | ||
default="moyen", | ||
max_length=16, | ||
verbose_name="Niveau d'enjeu", | ||
), | ||
preserve_default=False, | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
envergo/hedges/migrations/0005_rename_highly_sentitive_species_highly_sensitive.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 4.2.13 on 2025-01-07 10:23 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("hedges", "0004_species_highly_sentitive_species_level_of_concern"), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name="species", | ||
old_name="highly_sentitive", | ||
new_name="highly_sensitive", | ||
), | ||
] |
Oops, something went wrong.