fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stage fix
[redakcja.git]
/
apps
/
dvcs
/
models.py
diff --git
a/apps/dvcs/models.py
b/apps/dvcs/models.py
index
0ba8fe5
..
bb79627
100644
(file)
--- a/
apps/dvcs/models.py
+++ b/
apps/dvcs/models.py
@@
-10,7
+10,7
@@
from django.utils.translation import ugettext_lazy as _
from mercurial import mdiff, simplemerge
from django.conf import settings
from mercurial import mdiff, simplemerge
from django.conf import settings
-from dvcs.signals import post_commit
+from dvcs.signals import post_commit
, post_publishable
from dvcs.storage import GzipFileSystemStorage
from dvcs.storage import GzipFileSystemStorage
@@
-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
@@
-167,7
+167,7
@@
class Change(models.Model):
def set_publishable(self, publishable):
self.publishable = publishable
self.save()
def set_publishable(self, publishable):
self.publishable = publishable
self.save()
- post_publishable
(sender=self, publishable=publishable).send(
)
+ post_publishable
.send(sender=self, publishable=publishable
)
def create_tag_model(model):
def create_tag_model(model):