Skip to content

Commit

Permalink
Merge branch 'master' into issues/473
Browse files Browse the repository at this point in the history
  • Loading branch information
noahl committed Jan 23, 2018
2 parents 2e80b68 + 701eb46 commit d4b4f05
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion quipucords/api/connresults/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class SystemConnectionResult(models.Model):
CONN_STATUS_CHOICES = ((SUCCESS, SUCCESS), (FAILED, FAILED),
(UNREACHABLE, UNREACHABLE))

name = models.CharField(max_length=1024)
name = models.TextField()
credential = models.ForeignKey(Credential,
on_delete=models.CASCADE,
null=True)
Expand Down
2 changes: 1 addition & 1 deletion quipucords/api/connresults/serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
class SystemConnectionResultSerializer(NotEmptySerializer):
"""Serializer for the SystemConnectionResult model."""

name = CharField(required=True, max_length=1024)
name = CharField(required=True)
status = ChoiceField(
required=True, choices=SystemConnectionResult.CONN_STATUS_CHOICES)

Expand Down
2 changes: 1 addition & 1 deletion quipucords/api/inspectresults/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class RawFact(models.Model):
"""A model of a raw fact."""

name = models.CharField(max_length=1024)
value = models.CharField(max_length=1024)
value = models.TextField()

def __str__(self):
"""Convert to string."""
Expand Down
2 changes: 1 addition & 1 deletion quipucords/api/inspectresults/serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class RawFactSerializer(NotEmptySerializer):
"""Serializer for the SystemInspectionResult model."""

name = CharField(required=True, max_length=1024)
value = CharField(required=True, max_length=1024)
value = CharField(required=True)

class Meta:
"""Metadata for serialzer."""
Expand Down

0 comments on commit d4b4f05

Please sign in to comment.