-
-
Notifications
You must be signed in to change notification settings - Fork 0
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/dev' into jaclyn-taroni/460-chan…
…gelog-readme
- Loading branch information
Showing
10 changed files
with
167 additions
and
33 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
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,31 @@ | ||
# Generated by Django 3.2.22 on 2023-10-30 22:59 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("scpca_portal", "0029_auto_20221217_0256"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="ExternalAccession", | ||
fields=[ | ||
("created_at", models.DateTimeField(auto_now_add=True)), | ||
("updated_at", models.DateTimeField(auto_now=True)), | ||
("accession", models.TextField(primary_key=True, serialize=False)), | ||
("has_raw", models.BooleanField(default=False)), | ||
("url", models.TextField()), | ||
], | ||
options={ | ||
"db_table": "external_accessions", | ||
}, | ||
), | ||
migrations.AddField( | ||
model_name="project", | ||
name="external_accessions", | ||
field=models.ManyToManyField(to="scpca_portal.ExternalAccession"), | ||
), | ||
] |
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,17 @@ | ||
from django.db import models | ||
|
||
from scpca_portal.models.base import TimestampedModel | ||
|
||
|
||
class ExternalAccession(TimestampedModel): | ||
"""External accession.""" | ||
|
||
class Meta: | ||
db_table = "external_accessions" | ||
|
||
accession = models.TextField(primary_key=True) | ||
has_raw = models.BooleanField(default=False) | ||
url = models.TextField() | ||
|
||
def __str__(self) -> str: | ||
return self.accession |
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
Oops, something went wrong.