From 7e1849d7545fcfa73dc3d3fd29d3a1325b7c871b Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 6 Oct 2011 13:49:34 +0200 Subject: [PATCH 1/1] stage fix --- apps/dvcs/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dvcs/models.py b/apps/dvcs/models.py index 6cfda911..bb796274 100644 --- a/apps/dvcs/models.py +++ b/apps/dvcs/models.py @@ -51,7 +51,7 @@ class Tag(models.Model): Returns None for the last stage. """ try: - return Tag.objects.filter(ordering__gt=self.ordering)[0] + return type(self).objects.filter(ordering__gt=self.ordering)[0] except IndexError: return None -- 2.20.1