fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
#1757: keep calm on slug changes
[redakcja.git]
/
apps
/
dvcs
/
models.py
diff --git
a/apps/dvcs/models.py
b/apps/dvcs/models.py
index
6cfda91
..
bb79627
100644
(file)
--- 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:
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
except IndexError:
return None