Skip to content

Commit

Permalink
study and sample link is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
atarkowska committed Nov 9, 2017
1 parent dcecd93 commit f301dc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions emgapi/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,10 +597,10 @@ class Run(models.Model):
db_column='RUN_STATUS_ID', blank=True, null=True)
sample = models.ForeignKey(
Sample, db_column='SAMPLE_ID', related_name='runs',
on_delete=models.CASCADE)
on_delete=models.CASCADE, blank=True, null=True)
study = models.ForeignKey(
Study, db_column='STUDY_ID', related_name='runs',
on_delete=models.CASCADE)
on_delete=models.CASCADE, blank=True, null=True)
analysis_status = models.ForeignKey(
AnalysisStatus, db_column='ANALYSIS_STATUS_ID',
on_delete=models.CASCADE)
Expand Down

0 comments on commit f301dc9

Please sign in to comment.