Skip to content

Commit

Permalink
issue #1093 - Skip this for new deploys
Browse files Browse the repository at this point in the history
  • Loading branch information
davmlaw committed Jul 12, 2024
1 parent 22c0898 commit 9122838
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ def _check_has_existing_samples(apps):
return Sample.objects.all().exists()


def _check_has_gene_annotation(_apps):
return settings.ANNOTATION_GENE_ANNOTATION_VERSION_ENABLED
def _check_has_gene_annotation(apps):
GeneAnnotationVersion = apps.get_model("annotation", "GeneAnnotationVersion")
return settings.ANNOTATION_GENE_ANNOTATION_VERSION_ENABLED and GeneAnnotationVersion.objects.exists()


class Migration(migrations.Migration):
Expand Down

0 comments on commit 9122838

Please sign in to comment.