aboutsummaryrefslogtreecommitdiffstats
path: root/Post/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'Post/models.py')
-rw-r--r--Post/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Post/models.py b/Post/models.py
index 0159765..6ea38ef 100644
--- a/Post/models.py
+++ b/Post/models.py
@@ -45,7 +45,7 @@ class Build(models.Model):
default=ErrorType.RECIPE)
def save(self, *args, **kwargs):
- if self.ERROR_TYPE not in [e_type[0] for e_type in self.ERROR_TYPES]:
+ if self.ERROR_TYPE not in [e_type[0] for e_type in self.ERROR_TYPE_CHOICES]:
raise InvalidErrorType("Error type %s is not known" %
self.ERROR_TYPE)