Skip to content

Commit

Permalink
Revert "fix fields.W342"
Browse files Browse the repository at this point in the history
This reverts commit b4d5ee3.
  • Loading branch information
atarkowska committed Dec 19, 2017
1 parent 835b8f6 commit 8c3c155
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 41 deletions.
36 changes: 0 additions & 36 deletions emgapi/migrations/0006_OneToOne_W342.py

This file was deleted.

8 changes: 4 additions & 4 deletions emgapi/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def __str__(self):


class PipelineReleaseTool(models.Model):
pipeline = models.OneToOneField(
pipeline = models.ForeignKey(
Pipeline, db_column='PIPELINE_ID',
primary_key=True, on_delete=models.CASCADE)
tool = models.ForeignKey(
Expand Down Expand Up @@ -419,7 +419,7 @@ def __str__(self):


class StudyPublication(models.Model):
study = models.OneToOneField(
study = models.ForeignKey(
Study, db_column='STUDY_ID',
primary_key=True, on_delete=models.CASCADE)
pub = models.ForeignKey(
Expand Down Expand Up @@ -562,7 +562,7 @@ def __str__(self):


class SamplePublication(models.Model):
sample = models.OneToOneField(
sample = models.ForeignKey(
Sample, db_column='SAMPLE_ID',
on_delete=models.CASCADE, primary_key=True)
pub = models.ForeignKey(
Expand Down Expand Up @@ -876,7 +876,7 @@ def get_queryset(self):


class SampleAnn(models.Model):
sample = models.OneToOneField(
sample = models.ForeignKey(
Sample, db_column='SAMPLE_ID', primary_key=True,
related_name="metadata")
var_val_cv = models.ForeignKey(
Expand Down
4 changes: 4 additions & 0 deletions emgcli/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,3 +483,7 @@ def create_secret_key(var_dir):

mongodb = EMG_CONF['emg']['mongodb']
MONGO_CONN = mongoengine.connect(**mongodb)


# TODO: fix warnings
SILENCED_SYSTEM_CHECKS = ["fields.W342"]
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ exclude =
emgapi/migrations/0003_annotations.py,
emgapi/migrations/0004_analysisjobann.py,
emgapi/migrations/0005_study_sample_optional.py,
emgapi/migrations/0006_OneToOne_W342.py,
max-complexity = 10

0 comments on commit 8c3c155

Please sign in to comment.