Skip to content

Commit

Permalink
🎨 Polish
Browse files Browse the repository at this point in the history
Signed-off-by: zethson <lukas.heumos@posteo.net>
  • Loading branch information
Zethson committed Nov 21, 2024
1 parent 4f087b1 commit f13b61c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
8 changes: 4 additions & 4 deletions ourprojects/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 5.1.3 on 2024-11-21 16:00
# Generated by Django 5.1.3 on 2024-11-21 16:26

import django.core.validators
import django.db.models.deletion
Expand Down Expand Up @@ -280,7 +280,7 @@ class Migration(migrations.Migration):
(
"artifacts",
models.ManyToManyField(
related_name="Projects",
related_name="projects",
through="ourprojects.ArtifactProject",
to="lnschema_core.artifact",
),
Expand All @@ -298,7 +298,7 @@ class Migration(migrations.Migration):
(
"people",
models.ManyToManyField(
related_name="project_people", to="ourprojects.person"
related_name="projects", to="ourprojects.person"
),
),
(
Expand Down Expand Up @@ -471,7 +471,7 @@ class Migration(migrations.Migration):
model_name="project",
name="references",
field=models.ManyToManyField(
related_name="project_references", to="ourprojects.reference"
related_name="projects", to="ourprojects.reference"
),
),
migrations.AddField(
Expand Down
8 changes: 3 additions & 5 deletions ourprojects/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,12 @@ class Meta(Record.Meta, TracksRun.Meta, TracksUpdates.Meta):
"""A unique abbreviation."""
url: str | None = URLField(max_length=255, null=True, default=None)
"""A URL to view."""
people: Person = models.ManyToManyField(Person, related_name="project_people")
people: Person = models.ManyToManyField(Person, related_name="projects")
"""People associated with this project."""
references: Reference = models.ManyToManyField(
"Reference", related_name="project_references"
)
references: Reference = models.ManyToManyField("Reference", related_name="projects")
"""References associated with this project."""
artifacts: Artifact = models.ManyToManyField(
Artifact, through="ArtifactProject", related_name="Projects"
Artifact, through="ArtifactProject", related_name="projects"
)
"""Artifacts labeled with this Project."""

Expand Down

0 comments on commit f13b61c

Please sign in to comment.