You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* chore: separate fields & type hint backreferences in Project model
* feat: basic method to store user-defined settings for projects
* fix: don't fail whole migration if create roles task fails
* fix: admin form with too many choices
* feat: return nested representations of related models in settings
help_text="Taxa that are excluded by default in the occurrence filters and metrics. For example, 'Not a Moth'.",
20
+
related_name="exclude_taxa_default_projects",
21
+
to="main.taxon",
22
+
),
23
+
),
24
+
migrations.AddField(
25
+
model_name="project",
26
+
name="default_filters_include_taxa",
27
+
field=models.ManyToManyField(
28
+
blank=True,
29
+
help_text="Taxa that are included by default in the occurrence filters and metrics. For example, the top-level taxa like 'Moths' or 'Arthropods'. ",
30
+
related_name="include_taxa_default_projects",
31
+
to="main.taxon",
32
+
),
33
+
),
34
+
migrations.AddField(
35
+
model_name="project",
36
+
name="default_filters_score_threshold",
37
+
field=models.FloatField(default=0.5, help_text="Default score threshold for filtering occurrences"),
38
+
),
39
+
migrations.AddField(
40
+
model_name="project",
41
+
name="default_processing_pipeline",
42
+
field=models.ForeignKey(
43
+
blank=True,
44
+
help_text="The default pipeline to use for processing images in this project. This is used to determine which processing service to run on new images. ",
45
+
null=True,
46
+
on_delete=django.db.models.deletion.SET_NULL,
47
+
related_name="default_projects",
48
+
to="ml.pipeline",
49
+
),
50
+
),
51
+
migrations.AddField(
52
+
model_name="project",
53
+
name="session_time_gap_seconds",
54
+
field=models.IntegerField(default=7200, help_text="Time gap in seconds to consider a new session"),
0 commit comments