From: Radek Czajka Date: Thu, 6 Oct 2011 11:49:34 +0000 (+0200) Subject: stage fix X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/7e1849d7545fcfa73dc3d3fd29d3a1325b7c871b stage fix --- 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