Commit 0a1945dc authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

use ndh Links.get_absolute_url

parent 9fb7363d
......@@ -148,9 +148,6 @@ class Project(Links, NamedModel, TimeStampedModel):
updated = models.DateTimeField(blank=True, null=True)
# TODO: release github ↔ robotpkg
def get_absolute_url(self):
return reverse('rainboard:project', kwargs={'slug': self.slug})
def git_path(self):
return settings.RAINBOARD_GITS / self.main_namespace.slug / self.slug
......@@ -225,7 +222,7 @@ class Project(Links, NamedModel, TimeStampedModel):
def update(self):
tag = self.tag_set.filter(name__startswith='v').last()
tag = self.tag_set.filter(name__startswith='v').last() # TODO: implement SQL ordering for semver
if tag is not None:
self.version =[1:]
robotpkg = self.robotpkg_set.order_by('-updated').first()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment