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
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
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):