Skip to content

Commit 95f966c

Browse files
committed
Changed the implementation of Submission.latest_checks() to also return None checks, so it's possible to update a Passed due to no yang modules to a None (no modules to check).
- Legacy-Id: 13698
1 parent 5e80e00 commit 95f966c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/submit/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def existing_document(self):
6666
return Document.objects.filter(name=self.name).first()
6767

6868
def latest_checks(self):
69-
checks = [ self.checks.filter(checker=c, passed__in=[True,False]).latest('time') for c in self.checks.values_list('checker', flat=True).distinct() ]
69+
checks = [ self.checks.filter(checker=c).latest('time') for c in self.checks.values_list('checker', flat=True).distinct() ]
7070
return checks
7171

7272
class SubmissionCheck(models.Model):

0 commit comments

Comments
 (0)